MCPcopy Index your code
hub / github.com/google-map-react/google-map-react / omit

Function omit

src/utils/omit.js:2–11  ·  view source on GitHub ↗
(obj, keys)

Source from the content-addressed store, hash-verified

1// https://github.com/acdlite/recompose/blob/master/src/packages/recompose/utils/omit.js
2const omit = (obj, keys) => {
3 const { ...rest } = obj;
4 for (let i = 0; i < keys.length; i++) {
5 const key = keys[i];
6 if (key in rest) {
7 delete rest[key];
8 }
9 }
10 return rest;
11};
12
13export default omit;

Callers 3

shouldComponentUpdateFunction · 0.85
shouldComponentUpdateMethod · 0.85
componentDidUpdateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected