is-set

WebJar for is-set

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

is-set
Last Version

Last Version

2.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

is-set
WebJar for is-set
Project URL

Project URL

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

Source Code Management

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

Download is-set

How to add to project

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

dependency status dev dependency status License Downloads

npm badge

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

Example

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

assert(!isSet(new Map()));
assert(!isSet(new WeakSet()));
assert(!isSet(new WeakMap()));

assert(isSet(new Set()));

class MySet extends Set {}
assert(isSet(new MySet()));

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