UNPKG

google-map-react

Version:

isomorphic google map react component, allows render react components on the google map

17 lines (12 loc) 689 B
'use strict'; exports.__esModule = true; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; exports.default = isNumber; function isObjectLike(value) { return !!value && (typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object'; } var objectToString = Object.prototype.toString; function isNumber(value) { var numberTag = '[object Number]'; return typeof value === 'number' || isObjectLike(value) && objectToString.call(value) === numberTag; }