Ad
  • Custom User Avatar

    map creates a new array populated with the results of calling a provided function on every element in the calling array. SO assuming you have a function - operation and an array [1,2,3,null], the map method will run operation(1), operation(2), operation(3), operation(null).