@polkadot/util
Version:
A collection of useful utilities for @polkadot
16 lines (15 loc) • 379 B
TypeScript
/**
* @name isU8a
* @summary Tests for a `Uint8Array` object instance.
* @description
* Checks to see if the input object is an instance of `Uint8Array`.
* @example
* <BR>
*
* ```javascript
* import { isUint8Array } from '@polkadot/util';
*
* console.log('isU8a', isU8a([])); // => false
* ```
*/
export declare function isU8a(value?: unknown): value is Uint8Array;