Documentation

find

returns rows that match the criterion

array|object find(function criterion, [boolean first] );

Parameters

criterionfunctionmatch criteria
firstbooleanif true, only the first found result is returned. False by default.

Returns

array|objectarray of found rows or a row object in case of "first".

See also

Example

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

Back to top