Skip to content

Commit

Permalink
chore: use [].map.call instead of spread
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron committed Sep 24, 2021
1 parent 4847d9d commit 92dad8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion harness/compareArray.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ compareArray.isSameValue = function(a, b) {
};

compareArray.format = function(spreadable) {
return `[${[...spreadable].map(String).join(', ')}]`;
return `[${[].map.call(spreadable, String).join(', ')}]`;
};

assert.compareArray = function(actual, expected, message) {
Expand Down

0 comments on commit 92dad8d

Please sign in to comment.