hatch-surf/node_modules/is-weakmap
Riley Zhang df378d33ef
Some checks failed
CI / go (push) Waiting to run
CI / docker (push) Waiting to run
CI / lint-go (push) Waiting to run
CI / lint-docs (push) Waiting to run
CI / check-paperclip (push) Waiting to run
Deploy static site / Deploy to GitHub Pages (push) Has been cancelled
Deploy static site / Deploy via Docker to hatch.surf (push) Has been cancelled
Merge GitHub main into Gitea repo (allow unrelated histories)
Resolved conflicts by taking GitHub versions for:
- .dockerignore, .gitignore, Dockerfile, README.md, docker-compose.yml

Kept deploy.sh updated to:
- Pull from GitHub (primary source)
- Push to Gitea (push-mirror)
- Build from site/ directory (GitHub structure)

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-06-25 05:20:46 +02:00
..
.github Merge GitHub main into Gitea repo (allow unrelated histories) 2026-06-25 05:20:46 +02:00
test Merge GitHub main into Gitea repo (allow unrelated histories) 2026-06-25 05:20:46 +02:00
.editorconfig Merge GitHub main into Gitea repo (allow unrelated histories) 2026-06-25 05:20:46 +02:00
.eslintrc Merge GitHub main into Gitea repo (allow unrelated histories) 2026-06-25 05:20:46 +02:00
.nycrc Merge GitHub main into Gitea repo (allow unrelated histories) 2026-06-25 05:20:46 +02:00
CHANGELOG.md Merge GitHub main into Gitea repo (allow unrelated histories) 2026-06-25 05:20:46 +02:00
index.d.ts Merge GitHub main into Gitea repo (allow unrelated histories) 2026-06-25 05:20:46 +02:00
index.js Merge GitHub main into Gitea repo (allow unrelated histories) 2026-06-25 05:20:46 +02:00
LICENSE Merge GitHub main into Gitea repo (allow unrelated histories) 2026-06-25 05:20:46 +02:00
package.json Merge GitHub main into Gitea repo (allow unrelated histories) 2026-06-25 05:20:46 +02:00
README.md Merge GitHub main into Gitea repo (allow unrelated histories) 2026-06-25 05:20:46 +02:00
tsconfig.json Merge GitHub main into Gitea repo (allow unrelated histories) 2026-06-25 05:20:46 +02:00

is-weakmap Version Badge

github actions coverage License Downloads

npm badge

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

Example

var isWeakMap = require('is-weakmap');
assert(!isWeakMap(function () {}));
assert(!isWeakMap(null));
assert(!isWeakMap(function* () { yield 42; return Infinity; });
assert(!isWeakMap(Symbol('foo')));
assert(!isWeakMap(1n));
assert(!isWeakMap(Object(1n)));

assert(!isWeakMap(new Set()));
assert(!isWeakMap(new WeakSet()));
assert(!isWeakMap(new Map()));

assert(isWeakMap(new WeakMap()));

class MyWeakMap extends WeakMap {}
assert(isWeakMap(new MyWeakMap()));

Tests

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