chai
chai copied to clipboard
assert.sameMembers should work for sets
In the mathematical definition of a "set", the contents of a set are known as "members". It therefore stands that an assertion named "same members" should be able to handle sets. I believe this would be significantly more intuitive than using hasAllKeys
, because a set does not actually have keys.