$ npm install compare
Compare each element in an array with every other element in the array.
npm install compare
var compare = require('compare')
compare([1, 1, 1, 1], function(a, b) { return a === b }) // true
compare([1, 2, 3, 4], function(a, b) { return a !== b }) // true
compare([1, 2, 3, 3], function(a, b) { return a !== b }) // false
© 2010 - cnpmjs.org x YWFE | Home | YWFE