is-map
Advanced tools
Weekly downloads
Changelog
v2.0.2 - 2020-12-13
349a036
f473ae7
eslint
, @ljharb/eslint-config
, aud
, auto-changelog
, es6-shim
, object-inspect
, tape
12dbda3
nyc
on all tests; use tape
runner; add core-js
tests b280737
d8dcf17
eab86f9
eslint
, @ljharb/eslint-config
, tape
9c87af5
pull_request_tarbget
event 71647b8
es5-shim
, tape
3a91230
auto-changelog
; add aud
d3cd3da
83ef327
81a9eec
Readme
Is this value a JS Map? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
var isMap = require('is-map');
assert(!isMap(function () {}));
assert(!isMap(null));
assert(!isMap(function* () { yield 42; return Infinity; });
assert(!isMap(Symbol('foo')));
assert(!isMap(1n));
assert(!isMap(Object(1n)));
assert(!isMap(new Set()));
assert(!isMap(new WeakSet()));
assert(!isMap(new WeakMap()));
assert(isMap(new Map()));
class MyMap extends Map {}
assert(isMap(new MyMap()));
Simply clone the repo, npm install
, and run npm test
FAQs
Is this value a JS Map? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
The npm package is-map receives a total of 13,567,348 weekly downloads. As such, is-map popularity was classified as popular.
We found that is-map demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a GitHub app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.