You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The uniq function explicitly states that the === operator is used to test for object equality. The union, difference, and intersection functions should also explicitly state how object equality is tested.
The text was updated successfully, but these errors were encountered:
Actually, I think we could do with being a little less pedantic about value comparisons. All equality in Underscore is strict equality, unless the API says otherwise. In the case of uniq, the alternative is to pass an iterator function.
The
uniq
function explicitly states that the===
operator is used to test for object equality. Theunion
,difference
, andintersection
functions should also explicitly state how object equality is tested.The text was updated successfully, but these errors were encountered: