Try 'map' function of array