UNPKG

@technobuddha/library

Version:
18 lines (17 loc) 532 B
declare type Options = { /** test for high surrogates (D800-DBFF) */ high?: boolean; /** test for low surrogates (DC00-DFFF) */ low?: boolean; }; /** * Deterimine is a character is a surrogate * * @param input the character to test * @param __namedParameters see {@link Options} * @default high true * @defaultValue low true * @returns true if the specified character is a unicode surrogate */ export declare function isSurrogate(input: string, { high, low }?: Options): boolean; export default isSurrogate;