is-array-buffer-x
v2.1.2
Published
Detect whether or not an object is an ArrayBuffer.
Downloads
25,961
Maintainers
Readme
is-array-buffer-x
Detect whether or not an object is an ArrayBuffer.
module.exports(object)
⇒ boolean ⏏
Determine if an object
is an ArrayBuffer
.
Kind: Exported function
Returns: boolean - true
if the object
is an ArrayBuffer
,
else false`.
| Param | Type | Description | | ------ | --------------- | ------------------- | | object | * | The object to test. |
Example
import isArrayBuffer from 'is-array-buffer-x';
console.log(isArrayBuffer(new ArrayBuffer(4))); // true
console.log(isArrayBuffer(null)); // false
console.log(isArrayBuffer([])); // false