parse
parse(
value):Uint8Array
Defined in: src/uuid/codec.ts:86
Parse a UUID string into its 16 bytes. Throws when the string is not one.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Uint8Array
Example
Section titled “Example”parse("919108f7-52d1-4320-9bac-f847db4148a8");// Uint8Array(16) [ 145, 145, 8, 247, ... ]