Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xotic750/is-array-buffer-x

Detect whether or not an object is an ArrayBuffer.
https://github.com/xotic750/is-array-buffer-x

arraybuffer browser ecmascript nodejs

Last synced: 2 months ago
JSON representation

Detect whether or not an object is an ArrayBuffer.

Awesome Lists containing this project

README

        


Travis status


Dependency status


devDependency status


npm version


jsDelivr hits


bettercodehub score


Coverage Status

## 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**

```js
import isArrayBuffer from 'is-array-buffer-x';

console.log(isArrayBuffer(new ArrayBuffer(4))); // true
console.log(isArrayBuffer(null)); // false
console.log(isArrayBuffer([])); // false
```