assert.deepEqual & post-ES5 Data Types e.g. Map, Set, Iterables, etc #2309
Closed
Description
Currently assert.deepEquals
is ignorant of any new native data types introduced in ES6.
For example, this should probably throw, yet it does not:
assert.deepEqual(new Set([1, 2]), new Set([1]))
A good method might be to deepEqual
against .keys()
and .values()
.
deepEqual
should also probably work with generic Iterables too.
Activity