every2
v2.0.0
Published
Like Array.prototype.every but for every 2-tuple
Downloads
3
Readme
every2
Like Array.prototype.every
but for every 2-tuple
Install
npm i every2
Usage
var every2 = require('every2');
every2(fixtures.isAscendingPair, [1, 5, 10]); // => true
every2(fixtures.isAscendingPair, [8, 5, 10]); // => false
Please note the tuples are passed to the callback as individual arguments, not as an array.
See more examples of fixture callbacks.