Skip to content

Deep equal with sparse arrays #2

tmcw opened this Issue Mar 5, 2013 · 1 comment

2 participants

tmcw commented Mar 5, 2013

So, sparse arrays are deep equal with underscore:

_.isEqual([,], [undefined]) // true

deepEqual([,], [undefined]) // false

This is because sparse arrays have a different set of reported keys with Object.keys. Any idea which one should be right?

substack commented Mar 5, 2013

I have no idea. This module is just a verbatim copy of the deepEqual implementation from the node assert core library. Any bugs are features at this point.

@substack substack closed this Mar 5, 2013
@tmcw tmcw referenced this issue in mapbox/assert-http Mar 9, 2015

assert.deepEqual is not strict #10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.