package
Is this value a JS WeakSet? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
npm install is-weaksetGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Is this value a JS WeakSet? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
var isWeakSet = require('is-weakset');
assert(!isWeakSet(function () {}));
assert(!isWeakSet(null));
assert(!isWeakSet(function* () { yield 42; return Infinity; });
assert(!isWeakSet(Symbol('foo')));
assert(!isWeakSet(1n));
assert(!isWeakSet(Object(1n)));
assert(!isWeakSet(
Simply clone the repo, npm install, and run npm test
Estimated unpacked size across 12 packages.
214.6 kB
Includes dependencies.