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

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


lists.forEach(x, fc);
// x:  lists
// fc: called function (v, k, x)
const lists = require('extra-lists');

var x = [['a', 'b', 'c', 'd'], [1, 2, -3, -4]];
lists.forEach(x, v => console.log(v));
// 1
// 2
// -3
// -4


References