We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd5bd1c commit 5d8f7f8Copy full SHA for 5d8f7f8
functions/strings/ord.js
@@ -17,6 +17,7 @@ function ord (string) {
17
return code; // This is just a high surrogate with no following low surrogate, so we return its value;
18
// we could also throw an error as it is not a complete character, but someone may want to know
19
}
20
+ var low = str.charCodeAt(1);
21
return ((hi - 0xD800) * 0x400) + (low - 0xDC00) + 0x10000;
22
23
if (0xDC00 <= code && code <= 0xDFFF) { // Low surrogate
0 commit comments