MCPcopy
hub / github.com/apache/pouchdb / tryFilter

Function tryFilter

lib/index-browser.js:566–573  ·  view source on GitHub ↗
(filter, doc, req)

Source from the content-addressed store, hash-verified

564}
565
566function tryFilter(filter, doc, req) {
567 try {
568 return !filter(doc, req);
569 } catch (err) {
570 var msg = 'Filter function threw: ' + err.toString();
571 return createError(BAD_REQUEST, msg);
572 }
573}
574
575function filterChange(opts) {
576 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…