What is use of map() function in Angular?