(string: string, position = string.length)
| 170 | } |
| 171 | |
| 172 | function getLastUnicodeChar(string: string, position = string.length): string | undefined { |
| 173 | if (isSurrogatePair(string, position - 2)) { |
| 174 | return string.slice(position - 2, position); |
| 175 | } |
| 176 | return string[position - 1]; |
| 177 | } |
no test coverage detected