searching an array of contacts in ionic 3

Hi am retrieving a user list from firebase and would like to compare the numbers in the db with with the phone book and display matching contacts in ionic 3 using the cordova plugin. Can the filter option work with arrays and if not what options do I have