/home/techb158/balavpn.abdallabala.com/node_modules/es-shim-unscopables
NameSizeModeActions
.github/-0777rm
test/-0777rm
.eslintrc5850666editdlrm
.nycrc1390666editdlrm
CHANGELOG.md20520666editdlrm
index.d.ts2610666editdlrm
index.js5890666editdlrm
LICENSE10710666editdlrm
package.json19420666editdlrm
README.md22500666editdlrm
tsconfig.json1380666editdlrm
Edit: /home/techb158/balavpn.abdallabala.com/node_modules/es-shim-unscopables/index.js (589B)
'use strict'; var hasOwn = require('hasown'); var hasUnscopables = typeof Symbol === 'function' && typeof Symbol.unscopables === 'symbol'; var map = hasUnscopables && Array.prototype[Symbol.unscopables]; var $TypeError = TypeError; /** @type {import('.')} */ module.exports = function shimUnscopables(method) { if (typeof method !== 'string' || !method) { throw new $TypeError('method must be a non-empty string'); } if (!hasOwn(Array.prototype, method)) { throw new $TypeError('method must be on Array.prototype'); } if (hasUnscopables && map) { map[method] = true; } };