Search for a string in all properties of an object in Angular 2
问题 How to search for a string in all properties of an object in Angular 2 with TS. I have an array of customers rendered in a table with a search box, if the user types a value I want to search for all properties values to push a customer that matches the value typed. export var CUSTOMER: Client[] = [ { id: 1, name: 'John', phone: '888-888-888'}, { id: 2, name: 'Nick', phone: '555-888-888'}, { id: 3, name: 'Mike', phone: '666-888-888'}, ]; The Filter Pipe import {Pipe, PipeTransform, Injectable}