/home/techb158/balavpn.abdallabala.com/node_modules/is-weakref
NameSizeModeActions
.github/-0777rm
test/-0777rm
.eslintrc430666editdlrm
.nycrc1390666editdlrm
CHANGELOG.md82900666editdlrm
index.d.ts1040666editdlrm
index.js5990666editdlrm
LICENSE10670666editdlrm
package.json22180666editdlrm
README.md20120666editdlrm
tsconfig.json1230666editdlrm
Edit: /home/techb158/balavpn.abdallabala.com/node_modules/is-weakref/index.js (599B)
'use strict'; var callBound = require('call-bound'); // eslint-disable-next-line no-extra-parens var $deref = /** @type {(thisArg: WeakRef) => T | undefined} */ (callBound('WeakRef.prototype.deref', true)); /** @type {import('.')} */ module.exports = typeof WeakRef === 'undefined' ? function isWeakRef(_value) { // eslint-disable-line no-unused-vars return false; } : function isWeakRef(value) { if (!value || typeof value !== 'object') { return false; } try { // @ts-expect-error $deref(value); return true; } catch (e) { return false; } };