Skip to content

forEach

Subhajit Sahu edited this page Dec 28, 2022 · 12 revisions

Call a function for each value.


function forEach(x, fc)
// x:  ilists
// fc: null
const xilists = require('extra-ilists');

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


References

Clone this wiki locally