Skip to main content
toUSVString - util - Node documentation
function toUSVString

Usage in Deno

import { toUSVString } from "node:util";
toUSVString(string: string): string

Returns the string after replacing any surrogate code points (or equivalently, any unpaired surrogate code units) with the Unicode "replacement character" U+FFFD.

Parameters

string: string

Return Type

string