UNPKG

417 BTypeScriptView Raw
1/// <reference types="node" />
2/**
3 * @name isBuffer
4 * @summary Tests for a `Buffer` object instance.
5 * @description
6 * Checks to see if the input object is an instance of `Buffer`.
7 * @example
8 * <BR>
9 *
10 * ```javascript
11 * import { isBuffer } from '@polkadot/util';
12 *
13 * console.log('isBuffer', isBuffer(Buffer.from([]))); // => true
14 * ```
15 */
16export declare function isBuffer(value: unknown): value is Buffer;