is-empty-array-buffer
v1.0.0
Published
Check if the given value is an empty array buffer.
Downloads
16
Maintainers
Readme
is-empty-array-buffer
Check if the given value is an empty ArrayBuffer.
Main
dist/
├── is-empty-array-buffer.js (UMD)
├── is-empty-array-buffer.min.js (UMD, compressed)
├── is-empty-array-buffer.common.js (CommonJS, default)
└── is-empty-array-buffer.esm.js (ES Module)
Install
npm install is-empty-array-buffer
Usage
Syntax
isEmptyArrayBuffer(value);
value
- Type:
*
- The value to check.
- Type:
(return value)
- Type:
Boolean
- Returns
true
if the given value is an empty array buffer, elsefalse
.
- Type:
Examples
import isEmptyArrayBuffer from 'is-empty-array-buffer';
isEmptyArrayBuffer(new ArrayBuffer());
// > true
isEmptyArrayBuffer(new ArrayBuffer(8));
// > false
isEmptyArrayBuffer([]);
// > false