Why no Array.prototype.flatMap in javascript?
<p><code>flatMap</code> is incredibly useful on collections, but javascript does not provide one while having <code>Array.prototype.map</code>. Why?</p>

<p>Is there any way to emulate <code>flatMap</code> in javascript in both easy and efficient way w/o defining <code>flatMap</code> manually?</p>