Skip to main content


finds all the items that correspond to the specified rule

findAll(rule: IFilterMode | DataCallback<T>): T[];


rule: object | function - the search criteria


An array of matching item objects.


//searching for items by the functionvar items ={    if(items.text==="Manager"||items.text==="Marketer"){return true}});
//searching for items by the attribute keyvar items ={by:"text",match:"Manager"});

Related sample: Data. Find All

The rule parameter:

  • if set as DataCallback(item: T, index?: number, array?: T[]), the search will be applied by the rule specified in the function
  • if set as an IFilterMode object, the parameter contains the following attributes:
    • by - (string,function) the search criterion (either the key of the item attribute or a search function)
    • match - (string) the value of the item attribute