Skip to content

Commit a27d276

Browse files
author
Jacob Groß
committed
bind this since it's the fastest: https://esbench.com/bench/5970672999634800a0348ad8
1 parent 3cd8393 commit a27d276

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_utils.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function _arraySerializer (serializer, array) {
4747
* used for the serialization of arrais.
4848
*/
4949
const _makeArraySerializer = (serializer) => {
50-
if (typeof serializer === 'function') return _arraySerializer.bind(null, serializer);
50+
if (typeof serializer === 'function') return _arraySerializer.bind(this, serializer);
5151
return JSON.stringify;
5252
};
5353

0 commit comments

Comments
 (0)