$ npm install 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
© 2010 - cnpmjs.org x YWFE | Home | YWFE