returns all rows that match the criterion, or only the first one

array|object find(function criterion, [boolean first] );
criterionfunctionthe criterion to match
firstbooleanoptional, if true, only the first found result is returned. False by default.
array|objectan array of found rows or a row object if the 2nd parameter is set to true


// finds all rows which title match the given value
    return obj.title.toLowerCase().indexOf(value) != -1;

Related samples

See also
Back to top