• File: is.js
  • Full Path: /var/www/nodejs/daily_store_reports_nodejs/node_modules/proxyquire/lib/is.js
  • Date Modified: 02/04/2023 9:31 PM
  • File size: 338 bytes
  • MIME-type: text/plain
  • Charset: utf-8
var is = {};

['Arguments', 'Function', 'String', 'Number', 'Date', 'RegExp'].forEach(function (name) {
  is[name] = function (obj) {
    return Object.prototype.toString.call(obj) === '[object ' + name + ']'
  }
})

is.Object = function (obj) {
  /* eslint no-new-object: "off" */
  return obj === new Object(obj)
}

module.exports = is