isBytes
isBytes(
value):value is Bytes
Defined in: utils/bytes.ts:137
Returns true if and only if value is a valid Bytes
Same as ethers.utils.isBytes
Parameters
Section titled “Parameters”any
the value to check whether or not it matches Bytes
Returns
Section titled “Returns”value is Bytes
whether or not the value matches Bytes
Examples
Section titled “Examples”isBytes([1,2,3]);// trueisBytes(false);// falseisBytes(new Uint8Array(1));// true