Utils.isBytes
▸ isBytes<Length
>(b
, length
): b is Bytes<Length>
Type guard for Bytes<T>
type
Type parameters
Name | Type |
---|
Length | extends number |
Parameters
Name | Type | Description |
---|
b | unknown | The byte array |
length | Length | The length of the byte array |
Returns
b is Bytes<Length>
Defined in
bee-js/src/utils/bytes.ts:34