/encoding/byteString/from
stdConverts a string to a byte array.
Type signature
(byteString: string) => number[]
Examples
from("PQR");
// ⇒ [80, 81, 82]
Try in REPL
Questions
- How to convert a string into a byte array?
(byteString: string) => number[]
from("PQR");
// ⇒ [80, 81, 82]
Try in REPL