1.0.1 • Published 3 years ago

arrays-are-the-same v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

arrays-are-the-same NPM version NPM monthly downloads NPM total downloads

Return true or false as result to a given array.

Install

Install with npm:

$ npm install --save arrays-are-the-same

Usage

Only works with arrays.

const arraysAreTheSame = require('arrays-are-the-same');

console.log(arraysAreTheSame([1, 'name', 3, false, '5', true], ['5', 'name', 3, true, 1, false])); //=> true
console.log(arraysAreTheSame([1, 'name', 3, true, '5', 'first'], ['5', 'name', 3, true, 1, false])); //=> false

Author

Otavio Rampinelli

License

Copyright © 2022, Otavio Rampinelli. Released under the MIT License.