Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/xotic750/is-array-buffer-x
- Owner: Xotic750
- License: mit
- Created: 2015-12-11T22:13:50.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T21:54:48.000Z (about 2 years ago)
- Last Synced: 2024-04-25T23:21:52.912Z (9 months ago)
- Topics: arraybuffer, browser, ecmascript, nodejs
- Language: JavaScript
- Homepage:
- Size: 2.61 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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**
```js
import isArrayBuffer from 'is-array-buffer-x';console.log(isArrayBuffer(new ArrayBuffer(4))); // true
console.log(isArrayBuffer(null)); // false
console.log(isArrayBuffer([])); // false
```