'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; } };
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
.github | Folder | 0755 |
|
|
test | Folder | 0755 |
|
|
.eslintignore | File | 10 B | 0644 |
|
.eslintrc | File | 43 B | 0644 |
|
.nycrc | File | 139 B | 0644 |
|
CHANGELOG.md | File | 5.22 KB | 0644 |
|
LICENSE | File | 1.04 KB | 0644 |
|
README.md | File | 1.96 KB | 0644 |
|
index.js | File | 438 B | 0644 |
|
package.json | File | 1.69 KB | 0644 |
|