/home/techb158/balavpn.abdallabala.com/node_modules/es-abstract-get
NameSizeModeActions
.github/-0777rm
test/-0777rm
.nycrc1390666editdlrm
CHANGELOG.md8150666editdlrm
eslint.config.mjs7060666editdlrm
Get.d.ts1940666editdlrm
Get.js6100666editdlrm
GetMethod.d.ts3490666editdlrm
GetMethod.js7120666editdlrm
GetV.d.ts2000666editdlrm
GetV.js5360666editdlrm
isPropertyKey.d.ts2060666editdlrm
isPropertyKey.js1810666editdlrm
LICENSE10710666editdlrm
package.json25190666editdlrm
README.md30880666editdlrm
tsconfig.json680666editdlrm
Edit: /home/techb158/balavpn.abdallabala.com/node_modules/es-abstract-get/GetMethod.js (712B)
'use strict'; var $TypeError = require('es-errors/type'); var isCallable = require('is-callable'); var inspect = require('object-inspect'); var GetV = require('./GetV'); var isPropertyKey = require('./isPropertyKey'); // https://262.ecma-international.org/6.0/#sec-getmethod /** @type {import('./GetMethod')} */ module.exports = function GetMethod(O, P) { // 7.3.9.1 if (!isPropertyKey(P)) { throw new $TypeError('Assertion failed: P is not a Property Key'); } // 7.3.9.2 var func = GetV(O, P); // 7.3.9.4 if (func == null) { return void 0; } // 7.3.9.5 if (!isCallable(func)) { throw new $TypeError(inspect(P) + ' is not a function: ' + inspect(func)); } // 7.3.9.6 return func; };