@extra-lists/every

Checks if all values satisfy a test. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:

Usage no npm install needed!

<script type="module">
  import extraListsEvery from 'https://cdn.skypack.dev/@extra-lists/every';
</script>

README

Checks if all values satisfy a test. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:

Similar: some, every.

This is part of package extra-lists.


lists.every(x, ft);
// x:  lists
// ft: test function (v, k ,x)
const lists = require('extra-lists');

var x = [['a', 'b', 'c', 'd'], [1, 2, -3, -4]];
lists.every(x, v => v > 0);
// false

lists.every(x, v => v > -10);
// true


References