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

Function pick

lib/index.js:193–202  ·  view source on GitHub ↗
(obj, arr)

Source from the content-addressed store, hash-verified

191
192// like underscore/lodash _.pick()
193function pick(obj, arr) {
194 var res = {};
195 for (var i = 0, len = arr.length; i < len; i++) {
196 var prop = arr[i];
197 if (prop in obj) {
198 res[prop] = obj[prop];
199 }
200 }
201 return res;
202}
203
204// Most browsers throttle concurrent requests at 6, so it's silly
205// 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…