2022-01-21 08:28:41 +00:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
var objToString = Object.prototype.toString, id = objToString.call(1);
|
|
|
|
|
|
|
|
module.exports = function (value) {
|
|
|
|
return (
|
|
|
|
typeof value === "number" ||
|
2022-03-14 15:40:45 +00:00
|
|
|
value instanceof Number ||
|
|
|
|
(typeof value === "object" && objToString.call(value) === id)
|
2022-01-21 08:28:41 +00:00
|
|
|
);
|
|
|
|
};
|