How Array.filter Works In Angular Js