Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

is-map

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Issues
File Explorer

Advanced tools

is-map

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

    2.0.2latest

Version published
Maintainers
1
Weekly downloads
6,525,597
decreased by-8.33%

Weekly downloads

Changelog

Source

v2.0.2 - 2020-12-13

Commits

Readme

Source

is-map Version Badge

dependency status dev dependency status License Downloads

npm badge

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

Example

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()));

Tests

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

Keywords

FAQs

What is is-map?

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

Is is-map popular?

The npm package is-map receives a total of 6,248,385 weekly downloads. As such, is-map popularity was classified as popular.

Is is-map well maintained?

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.

Last updated on 14 Dec 2020

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.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc