flatMap
is incredibly useful on collections, but javascript does not provide one while having Array.prototype.map
. Why?
Is there any way to emulate flatMap
in javascript in both easy and efficient way w/o defining flatMap
manually?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…