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

Function pick

lib/index-browser.js:189–198  ·  view source on GitHub ↗
(obj, arr)

Source from the content-addressed store, hash-verified

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

Callers 5

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