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

Function modField

lib/index.es.js:3712–3722  ·  view source on GitHub ↗
(docFieldValue, userValue)

Source from the content-addressed store, hash-verified

3710}
3711
3712function modField(docFieldValue, userValue) {
3713 if (typeof docFieldValue !== "number" ||
3714 parseInt(docFieldValue, 10) !== docFieldValue) {
3715 return false;
3716 }
3717
3718 var divisor = userValue[0];
3719 var mod = userValue[1];
3720
3721 return docFieldValue % divisor === mod;
3722}
3723
3724function arrayContainsValue(docFieldValue, userValue) {
3725 return userValue.some(function (val) {

Callers 1

index.es.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…