Skip to content

@technobuddha > library > Unicode > Is Surrogate

Function: isSurrogate() ​

ts
function isSurrogate(input: string, options: IsSurrogateOptions): boolean;

Defined in: is-surrogate.ts:23

Determine is a character is a surrogate

Parameters ​

ParameterTypeDescription
inputstringthe character to test
optionsIsSurrogateOptionssee IsSurrogateOptions

Returns ​

boolean

true if the specified character is a unicode surrogate

Default Value ​

ts
high true

Default Value ​

ts
low true