is-set
Advanced tools
Weekly downloads
Changelog
v2.0.2 - 2020-12-13
10a1a86
9611423
eslint
, @ljharb/eslint-config
, aud
, auto-changelog
, es6-shim
, object-inspect
, tape
7d4d9b3
nyc
on all tests dff5fb6
6bed76a
ee9e740
core-js
tests 9ef1b4e
eslint
, @ljharb/eslint-config
, tape
5661354
pull_request_target
event 2cea69e
es5-shim
, tape
9e24b51
auto-changelog
; add aud
69ae556
5fe826a
c7c67f6
6ef4ebd
Readme
Is this value a JS Set? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
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()));
Simply clone the repo, npm install
, and run npm test
Is this value a JS Set? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
The npm package is-set receives a total of 9,318,596 weekly downloads. As such, is-set popularity was classified as popular.
We found that is-set 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.