Files
pezkuwi-common/packages/util/cjs/is/buffer.d.ts
T

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;