@extra-iterable/for-each.min

Calls a function for each value. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:

Usage no npm install needed!

<script type="module">
  import extraIterableForEachMin from 'https://cdn.skypack.dev/@extra-iterable/for-each.min';
</script>

README

Calls a function for each value. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:

This is part of package extra-iterable.

This is browserified, minified version of @extra-iterable/for-each.
It is exported as global variable iterable_forEach.
CDN: unpkg, jsDelivr.


iterable.forEach(x, fc);
// x:  an iterable
// fc: called function (v, i, x)
const iterable = require("extra-iterable");

var x = [1, 2, -3, -4];
iterable.forEach(x, v => console.log(v));
// 1
// 2
// -3
// -4


References