chore: use [].map.call instead of spread

This commit is contained in:
rwaldron 2021-09-24 13:45:02 -04:00
parent 4847d9db5a
commit 92dad8d640
1 changed files with 1 additions and 1 deletions

View File

@ -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) {