← Back to release summary
TextEncoder's encodeInto() method allows an encoded string to be written directly "into" a supplied pre-allocated buffer, offering a performant alternative to using encode() to produce a buffer, and copying its contents into an existing buffer.
View on chromestatus.com