chai icon indicating copy to clipboard operation
chai copied to clipboard

assert.sameMembers should work for sets

Open djmattyg007 opened this issue 2 years ago • 0 comments

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.

djmattyg007 avatar May 29 '22 06:05 djmattyg007