Skip to content

flatMap

Subhajit Sahu edited this page Jun 11, 2020 · 13 revisions

Flattens nested object, using map function. 🏃 📼 📦 🌔 📒

object.flatMap(x, fn, [ths]);
// x:   a nested object
// fn:  map function (v, k, x)
// ths: this argument
Clone this wiki locally