# 如何实现一个 flatMap 函数 (头条)
Issue
欢迎在 Issue 中交流与讨论: Issue 229 (opens new window)
Author
没说不让用flat;所以有个取巧的办法 const flatMap = arr => arr.flat().map(_ => _);
Issue
欢迎在 Issue 中交流与讨论: Issue 229 (opens new window)
Author
没说不让用flat;所以有个取巧的办法 const flatMap = arr => arr.flat().map(_ => _);