Skip to content

Commit 4f3d71d

Browse files
remove fallback to Array.from in codePointAt JS implementation for now
1 parent b38eb80 commit 4f3d71d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Data/String/CodePoints.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ exports._codePointAt = function (fallback) {
3131
if (o.done) return Nothing;
3232
if (i === 0) return Just(unsafeCodePointAt0(o.value));
3333
}
34-
} else if (hasArrayFrom) {
35-
var cps = Array.from(str);
36-
if (index >= cps.length) return Nothing;
37-
return Just(unsafeCodePointAt0(cps[index]));
3834
}
3935
return fallback(index)(str);
4036
};

0 commit comments

Comments
 (0)