%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/var/www/html/node_modules/is-weakref/
Upload File :
Create Path :
Current File : //proc/self/root/var/www/html/node_modules/is-weakref/index.js

'use strict';

var callBound = require('call-bind/callBound');

var $deref = callBound('WeakRef.prototype.deref', true);

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 {
			$deref(value);
			return true;
		} catch (e) {
			return false;
		}
	};

Zerion Mini Shell 1.0