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

Function pick

lib/index.es.js:188–197  ·  view source on GitHub ↗
(obj$$1, arr)

Source from the content-addressed store, hash-verified

186
187// like underscore/lodash _.pick()
188function pick(obj$$1, arr) {
189 var res = {};
190 for (var i = 0, len = arr.length; i < len; i++) {
191 var prop = arr[i];
192 if (prop in obj$$1) {
193 res[prop] = obj$$1[prop];
194 }
195 }
196 return res;
197}
198
199// Most browsers throttle concurrent requests at 6, so it's silly
200// to shim _bulk_get by trying to launch potentially hundreds of requests

Callers 4

processBatchFunction · 0.70
eventFunctionMethod · 0.70
cleanDocsFunction · 0.70
doBulkGetShimFunction · 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…