Skip to content

partitionAs

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

Segregates values by similarity. 🏃 📼 📦 🌔 📒

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