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

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


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

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


References