Skip to content

countAs

Subhajit Sahu edited this page May 17, 2020 · 17 revisions

Counts occurrences of values. 🏃 📼 📦 🌔 📒

iterable.countAs(x, [fn], [ths]);
// x:   an iterable
// fn:  map function (v, i, x)
// ths: this argument
// --> Map {value => count}
Clone this wiki locally