When and why does it make sense to use closure expressions?
map()
in arraysThat's right! Closures are great when we want to use convenience functions that take other functions and because their syntax is concise and readable.
Yikes! Closures are great when we want to use convenience functions that take other functions and because their syntax is concise and readable.