mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-04-22 06:47:57 +00:00
17 lines
447 B
TypeScript
17 lines
447 B
TypeScript
import type { BufferObject } from '../types.js';
|
|
/**
|
|
* @name isBuffer
|
|
* @summary Tests for a `Buffer` object instance.
|
|
* @description
|
|
* Checks to see if the input object is an instance of `Buffer`.
|
|
* @example
|
|
* <BR>
|
|
*
|
|
* ```javascript
|
|
* import { isBuffer } from '@pezkuwi/util';
|
|
*
|
|
* console.log('isBuffer', isBuffer(Buffer.from([]))); // => true
|
|
* ```
|
|
*/
|
|
export declare function isBuffer<T = BufferObject>(value: unknown): value is T;
|