What is use of filter() function in Angular?