@extra-lists/some.min

Checks if any value satisfies a test. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:

Usage no npm install needed!

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

README

Checks if any value satisfies a test. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:

Similar: some, every.

This is part of package extra-lists.

This is browserified, minified version of @extra-lists/some.
It is exported as global variable lists_some.
CDN: unpkg, jsDelivr.


lists.some(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.some(x, v => v > 10);
// false

lists.some(x, v => v < 0);
// true


References