Files
common/docs/util/modules/_is_buffer_.md
T
2018-11-14 10:01:01 +00:00

670 B

Functions

isBuffer

▸ isBuffer(value: any): boolean

Defined in is/buffer.ts:22

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:

import { isBuffer } from '@polkadot/util';

console.log('isBuffer', isBuffer(Buffer.from([]))); // => true

Parameters:

Param Type
value any

Returns: boolean