map is used to get data from the array of objects,Map will not modify the original array but it will copy the array for performing operations.
here we are making a callback function inside a map function and calling name through res argument.
map is used to get data from the array of objects,Map will not modify the original array but it will copy the array for performing operations.
here we are making a callback function inside a map function and calling name through res argument.