Posted over 6 years ago. Visible to the public. Repeats.

Javascript: Comparing two arrays for equality

Don't Google this, you will lose all will to live. Instead use Object#isEqual from Lodash or Underscore.js:

Copy
_.isEqual([1, 2], [2, 3]) // => false

To compare two arrays for equality in a Jasmine spec assertion, see Jasmine: Testing complex types for equality.

By refactoring problematic code and creating automated tests, makandra can vastly improve the maintainability of your Rails application.

Owner of this card:

Avatar
Henning Koch
Last edit:
11 months ago
by Henning Koch
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Henning Koch to makandra dev
This website uses cookies to improve usability and analyze traffic.
Accept or learn more