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

Function omit

src/utils.js:64–72  ·  view source on GitHub ↗
(obj, omitKeys)

Source from the content-addressed store, hash-verified

62 * Returns a new object with the key/value pairs from `obj` that are not in the array `omitKeys`.
63 */
64export function omit(obj, omitKeys) {
65 const result = {};
66 Object.keys(obj).forEach((key) => {
67 if (omitKeys.indexOf(key) === -1) {
68 result[key] = obj[key];
69 }
70 });
71 return result;
72}
73
74/**
75 * Returns a filtered copy of an object with only the specified keys.

Callers 9

renderMethod · 0.90
renderMethod · 0.90
Collapse.jsFile · 0.90
renderMethod · 0.90
renderModalDialogFunction · 0.90
Fade.jsFile · 0.90
renderMethod · 0.90
renderMethod · 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…