why to use JavaScript map() ?
Map function is used to applying the some operation on each element in the array and return the new array .
Original array is not modified instead a new array is returned .
Simple map()
Ok here is a simple example to apply a discount on all the items...
yatheesh.hashnode.dev3 min read