Compare function returns 'true' when tested arrays length is not equal
Closed this issue · 3 comments
psxcode commented
assertArrays.js @ 13
const compare = function(actual, expected) { return actual.every((value, index) => value === expected[index]); };
compare([], [1, 2, 3]); // true
compare([1, 2], [1, 2, 3]); // true
GaneshSPatil commented
@psxcode -- thanks for reporting the issue.
I have published v1.1.0
which contains the fix for the current issue.
can you please verify?
Thanks
psxcode commented
Great.
I think that did it.
It works now.
GaneshSPatil commented
@psxcode -- Thanks