MCPcopy Index your code
hub / github.com/reactstrap/reactstrap / pick

Function pick

src/utils.js:77–89  ·  view source on GitHub ↗
(obj, keys)

Source from the content-addressed store, hash-verified

75 * Returns a filtered copy of an object with only the specified keys.
76 */
77export function pick(obj, keys) {
78 const pickKeys = Array.isArray(keys) ? keys : [keys];
79 let { length } = pickKeys;
80 let key;
81 const result = {};
82
83 while (length > 0) {
84 length -= 1;
85 key = pickKeys[length];
86 result[key] = obj[key];
87 }
88 return result;
89}
90
91let warned = {};
92

Callers 2

Collapse.jsFile · 0.90
Fade.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…