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