Medium

What is the purpose of Array.prototype.flatMap in JavaScript, and how does it differ from combining map and flat?

Choose an option below