-
Notifications
You must be signed in to change notification settings - Fork 0
forEach
Subhajit Sahu edited this page Dec 22, 2022
·
12 revisions
Call a function for each value.
function forEach(x, fp)
// x: ientries
// fp: process function (v, k, x)
const ientries = require('extra-ientries');
var x = [["a", 1], ["b", 2], ["c", -3], ["d", -4]];
ientries.forEach(x, v => console.log(v));
// → 1
// → 2
// → -3
// → -4