Skip to content

Commit 3e609bf

Browse files
committed
fix: remove apply
1 parent 49d96af commit 3e609bf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/utils/latin.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable prefer-spread */
2-
31
/**
42
* This function is an optimization for small basic latin strings.
53
* @internal
@@ -59,7 +57,7 @@ export function tryLatin(uint8array: Uint8Array, start: number, end: number): st
5957
}
6058

6159
if (basicLatin) {
62-
return String.fromCharCode.apply(String, latinBytes);
60+
return String.fromCharCode(...latinBytes);
6361
}
6462
}
6563

0 commit comments

Comments
 (0)