Say you want to double every number in a list, or transform every element of an array into something else. You could iterate over the array and build a new array, or you could use the map method. This is a method you really shouldn't skip learning about, it is very useful.
Comments
No comments yet. Leave a Comment
