Files
common/docs/util/modules/_is_buffer_.md
T
2019-01-15 09:40:23 +00:00

39 lines
669 B
Markdown

# Functions
<a id="isbuffer"></a>
## isBuffer
▸ **isBuffer**(value: *`any`*): `boolean`
*Defined in [is/buffer.ts:22](https://github.com/polkadot-js/common/blob/7919b34/packages/util/src/is/buffer.ts#L22)*
*__name__*: isBuffer
*__signature__*: isBuffer (value: any): boolean
*__summary__*: Tests for a `Buffer` object instance.
*__description__*: Checks to see if the input object is an instance of `Buffer`.
*__example__*:
```javascript
import { isBuffer } from '@polkadot/util';
console.log('isBuffer', isBuffer(Buffer.from([]))); // => true
```
**Parameters:**
| Name | Type |
| ------ | ------ |
| value | `any` |
**Returns:** `boolean`
___