@extra-array/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 extraArraySomeMin from 'https://cdn.skypack.dev/@extra-array/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-array.

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


array.some(x, [ft]);
// x:  an array
// ft: test function (v, i, x)
const array = require("extra-array");

var x = [1, 2, -3, -4];
array.some(x, v => v > 10);
// false

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


References