@extra-map/every.min

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 extraMapEveryMin from 'https://cdn.skypack.dev/@extra-map/every.min';
</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-map.

This is browserified, minified version of @extra-map/every.
It is exported as global variable map_every.
CDN: unpkg, jsDelivr.


map.every(x, ft);
// x:  a map
// ft: test function (v, k, x)
const map = require("extra-map");

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

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


References