Array.prototype.flatMap from ES2019

Laurie Barth
InstructorLaurie Barth

Social Share Links

Tweet

Use the flatMap function to both map and flatten at the same time.