@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
| Parameter | Type | Description |
|---|---|---|
input | string | the character to test |
options | IsSurrogateOptions | see IsSurrogateOptions |
Returns
boolean
true if the specified character is a unicode surrogate
Default Value
ts
high trueDefault Value
ts
low true