Array Methods In Javascript Filter