TextEncoder

utilsDocs


near-sdk-js v2.0.0 / utils / TextEncoder

Class: TextEncoder

A subset of NodeJS TextEncoder API

Constructors

new TextEncoder()

new TextEncoder(): TextEncoder

Returns

TextEncoder

Methods

encode()

encode(s): Uint8Array

Parameters

s: string

Returns

Uint8Array

Defined in

packages/near-sdk-js/src/utils.ts:299

Last updated