![]() If one is using the built-in notion of Set equality (that is, =), then the above should work. This is relevant for Sets: I do not think one can override the notion of Set equality in a meaningful way. Note that if one is using the = notion of equality, then know that falsey values and coercion means that = equality is NOT TRANSITIVE. Easiest option, works in almost all cases, except that null!= undefined but they both are converted to JSON representation null and considered equal: function arraysEqual(a1,a2), new Map(,]), nineTen],
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |