UNPKG

string-character-is-astral-surrogate

Version:

Tells, is given character a part of astral character, specifically, a high and low surrogate

5 lines (3 loc) 192 B
declare function isHighSurrogate(something: string | undefined): boolean; declare function isLowSurrogate(something: string | undefined): boolean; export { isHighSurrogate, isLowSurrogate };