LoDash – Comparing equality

Since JavaScript can set a variable equal to a reference of another variable, there are two types of comparisons. Same

_.eq will do a same value zero comparison to determine if they are the same reference, and it will be false even if the content is identical

_.isEqual will do a deep compare for the same content, but not specifically the same reference

If you just want to see if two structures and contents are the same, use _.isEqual()