package
Is this value a JS Map? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
npm install is-mapGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 1 packages.
19.9 kB
Includes dependencies.
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
Simply clone the repo, npm install, and run npm test