DEV Community

loading...

Discussion on: Equality of Data Structures: Ruby vs. JavaScript

Collapse
annarankin profile image
Anna Rankin Author

Hi Tim, good point! However, if you try out [1,2,3] == [1,2,3] in your console, you'll see it returns false. JS's double-equals will coerce types, but it won't perform a recursive equality check the way it does in Ruby. 😵