37 lines
608 B
Markdown
37 lines
608 B
Markdown
|
|
|
|
# Functions
|
|
|
|
<a id="isu8a"></a>
|
|
|
|
## isU8a
|
|
|
|
▸ **isU8a**(value?: *`any`*): `boolean`
|
|
|
|
*Defined in [is/u8a.ts:21](https://github.com/polkadot-js/common/blob/420f807/packages/util/src/is/u8a.ts#L21)*
|
|
|
|
*__name__*: isU8a
|
|
|
|
*__summary__*: Tests for a `Uint8Array` object instance.
|
|
|
|
*__description__*: Checks to see if the input object is an instance of `Uint8Array`.
|
|
|
|
*__example__*:
|
|
|
|
```javascript
|
|
import { isUint8Array } from '@polkadot/util';
|
|
|
|
console.log('isU8a', isU8a([])); // => false
|
|
```
|
|
|
|
**Parameters:**
|
|
|
|
| Name | Type |
|
|
| ------ | ------ |
|
|
| `Optional` value | `any` |
|
|
|
|
**Returns:** `boolean`
|
|
|
|
___
|
|
|