MCPcopy Index your code
hub / github.com/apache/pouchdb / tryFilter

Function tryFilter

lib/index.es.js:554–561  ·  view source on GitHub ↗
(filter, doc, req)

Source from the content-addressed store, hash-verified

552}
553
554function tryFilter(filter, doc, req) {
555 try {
556 return !filter(doc, req);
557 } catch (err) {
558 var msg = 'Filter function threw: ' + err.toString();
559 return createError(BAD_REQUEST, msg);
560 }
561}
562
563function filterChange(opts) {
564 var req = {};

Callers 1

filterChangeFunction · 0.70

Calls 3

filterFunction · 0.70
createErrorFunction · 0.70
toStringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…