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

Function pick

src/utils/pick.js:3–10  ·  view source on GitHub ↗
(obj, fn)

Source from the content-addressed store, hash-verified

1// source taken from https://github.com/rackt/redux/blob/master/src/utils/pick.js
2
3export default function pick(obj, fn) {
4 return Object.keys(obj).reduce((result, key) => {
5 if (fn(obj[key])) {
6 result[key] = obj[key]; // eslint-disable-line
7 }
8 return result;
9 }, {});
10}

Callers 2

componentDidUpdateMethod · 0.85
GoogleMapClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected