cosmicanant/recursive-diff

Comparing arrays where only one contains undefined element results in empty diff

Closed this issue · 0 comments

Screenshots from Node REPL:

Screenshot 2020-07-17 at 15 29 22

This only happens when array B's undefined(s) are placed in indices higher than the last index for array A. e.g this works as expected:

Screenshot 2020-07-17 at 20 40 05