'use strict'; var numToStr = Number.prototype.toString; var toStr = Object.prototype.toString; var numClass = '[object Number]'; var hasToStringTag = require('has-tostringtag/shams')(); module.exports = function isNumberObject(value) { if (typeof value === 'number') { return true; } if (typeof value !== 'object') { return false; } return hasToStringTag ? value instanceof Number : toStr.call(value) === numClass; };