@f/equal-array

Check if two arrays have shallow equality

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
00Mar 3, 2016Nov 14, 2015Minified + gzip package size for @f/equal-array in KB

Readme

equal-array

Build status Git tag NPM version Code style

Check if two arrays have shallow equality

Installation

$ npm install @f/equal-array

Usage

var equal = require('@f/equal-array')

equal([1, 2], [1, 2]) // => true
equal([1, 2], [1, 2, 3]) // => false

API

equal(arr1, arr2)

  • arr1 - First array.
  • arr2 - Second array.

Returns: Boolean.

License

MIT

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.