What is the purpose of the `map()` function for arrays? | Array Operations | javascript Interview Questions | NextRound.in