is-map

WebJar for is-map

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

is-map
Last Version

Last Version

2.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

is-map
WebJar for is-map
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/inspect-js/is-map

Download is-map

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/is-map/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>is-map</artifactId>
    <version>2.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/is-map/
implementation 'org.webjars.npm:is-map:2.0.2'
// https://jarcasting.com/artifacts/org.webjars.npm/is-map/
implementation ("org.webjars.npm:is-map:2.0.2")
'org.webjars.npm:is-map:jar:2.0.2'
<dependency org="org.webjars.npm" name="is-map" rev="2.0.2">
  <artifact name="is-map" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='is-map', version='2.0.2')
)
libraryDependencies += "org.webjars.npm" % "is-map" % "2.0.2"
[org.webjars.npm/is-map "2.0.2"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

is-map Version Badge

github actions coverage 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

org.webjars.npm

Inspect JS

JavaScript value inspection tools.

Versions

Version
2.0.2
2.0.1