"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const callBound$1 = require("../call-bind/callBound.cjs");
const shams = require("../has-tostringtag/shams.cjs");
var callBound = callBound$1.callBound;
var $numToStr = callBound("Number.prototype.toString");
var tryNumberObject = function tryNumberObject2(value) {
  try {
    $numToStr(value);
    return true;
  } catch (e) {
    return false;
  }
};
var $toString = callBound("Object.prototype.toString");
var numClass = "[object Number]";
var hasToStringTag = shams.shams();
var isNumberObject = function isNumberObject2(value) {
  if (typeof value === "number") {
    return true;
  }
  if (!value || typeof value !== "object") {
    return false;
  }
  return hasToStringTag ? tryNumberObject(value) : $toString(value) === numClass;
};
exports.isNumberObject = isNumberObject;
//# sourceMappingURL=index.cjs.map
