Skip to content

Commit

Permalink
change(android): removes unneeded conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
jahorton committed Jun 7, 2024
1 parent 891928e commit 062a867
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions common/web/lm-worker/src/polyfills/array.from.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
(function() {
if(!Array.from) {
function isHighSurrogate(codeUnit) {
if(typeof codeUnit == 'string') {
codeUnit = codeUnit.charCodeAt(0);
}

codeUnit = codeUnit.charCodeAt(0);
return codeUnit >= 0xD800 && codeUnit <= 0xDBFF;
}

function isLowSurrogate(codeUnit) {
if(typeof codeUnit == 'string') {
codeUnit = codeUnit.charCodeAt(0);
}

codeUnit = codeUnit.charCodeAt(0);
return codeUnit >= 0xDC00 && codeUnit <= 0xDFFF;
}

Expand Down

0 comments on commit 062a867

Please sign in to comment.