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

Function isNumber

src/utils/isNumber.js:7–13  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

5const objectToString = Object.prototype.toString;
6
7export default function isNumber(value) {
8 const numberTag = '[object Number]';
9 return (
10 typeof value === 'number' ||
11 (isObjectLike(value) && objectToString.call(value) === numberTag)
12 );
13}

Callers 1

GoogleMapClass · 0.85

Calls 1

isObjectLikeFunction · 0.85

Tested by

no test coverage detected