Skip to content

Commit

Permalink
bind this since it's the fastest: https://esbench.com/bench/597067299…
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Groß committed Sep 15, 2021
1 parent 3cd8393 commit a27d276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_utils.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function _arraySerializer (serializer, array) {
* used for the serialization of arrais.
*/
const _makeArraySerializer = (serializer) => {
if (typeof serializer === 'function') return _arraySerializer.bind(null, serializer);
if (typeof serializer === 'function') return _arraySerializer.bind(this, serializer);
return JSON.stringify;
};

Expand Down

1 comment on commit a27d276

@kurtextrem
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.