Functions

isU8a

▸ isU8a(value?: any): boolean

Defined in is/u8a.ts:21

name: isU8a

summary: Tests for a Uint8Array object instance.

description: Checks to see if the input object is an instance of Uint8Array.

example:

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

console.log('isU8a', isU8a([])); // => false
1
2
3

Parameters:

Name Type
Optional value any

Returns: boolean


Last Updated: 2/26/2019, 11:08:42 AM