You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Priyanka Punukollu 267a7b1e4f Merge remote main into local — keep all agent feature files and Angular UI changes 4 months ago
..
.github Merge remote main into local — keep all agent feature files and Angular UI changes 4 months ago
test Merge remote main into local — keep all agent feature files and Angular UI changes 4 months ago
.editorconfig Merge remote main into local — keep all agent feature files and Angular UI changes 4 months ago
.eslintrc Merge remote main into local — keep all agent feature files and Angular UI changes 4 months ago
.gitattributes Merge remote main into local — keep all agent feature files and Angular UI changes 4 months ago
.nycrc Merge remote main into local — keep all agent feature files and Angular UI changes 4 months ago
CHANGELOG.md Merge remote main into local — keep all agent feature files and Angular UI changes 4 months ago
LICENSE Merge remote main into local — keep all agent feature files and Angular UI changes 4 months ago
README.md Merge remote main into local — keep all agent feature files and Angular UI changes 4 months ago
index.d.ts Merge remote main into local — keep all agent feature files and Angular UI changes 4 months ago
index.js Merge remote main into local — keep all agent feature files and Angular UI changes 4 months ago
package.json Merge remote main into local — keep all agent feature files and Angular UI changes 4 months ago
tsconfig.json Merge remote main into local — keep all agent feature files and Angular UI changes 4 months ago

README.md

is-weakset Version Badge

github actions coverage License Downloads

npm badge

Is this value a JS WeakSet? This module works cross-realm/iframe, and despite ES6 @@toStringTag.

Example

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(new Set()));
assert(!isWeakSet(new WeakMap()));
assert(!isWeakSet(new Map()));

assert(isWeakSet(new WeakSet()));

class MyWeakSet extends WeakSet {}
assert(isWeakSet(new MyWeakSet()));

Tests

Simply clone the repo, npm install, and run npm test