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

Function latLng2Obj

src/google_map.js:70–71  ·  view source on GitHub ↗
(latLng)

Source from the content-addressed store, hash-verified

68}
69
70const latLng2Obj = (latLng) =>
71 isPlainObject(latLng) ? latLng : { lat: latLng[0], lng: latLng[1] };
72
73const _checkMinZoom = (zoom, minZoom) => {
74 if (process.env.NODE_ENV !== 'production') {

Callers 3

constructorMethod · 0.85
componentDidUpdateMethod · 0.85
GoogleMapClass · 0.85

Calls 1

isPlainObjectFunction · 0.85

Tested by

no test coverage detected