2.0.3 • Published 2 months ago

is-set v2.0.3

Weekly downloads
3,264,482
License
MIT
Repository
github
Last release
2 months ago

is-set Version Badge

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

es-get-iteratoreasy-select-rnreact-native-printer-brothersreact-native-shekhar-bridge-test@oiti/documentoscopy-react-nativequoc-test@infinitebrahmanuniverse/nolb-is-s@saaspe/componentsexpand-react-bridgeluminos-ui-coresklif-ui-kitsklif-api@everything-registry/sub-chunk-1935jawwy-sdkjawwy_gamification_release@deepakorg/test@deepak757/testreact-native-sphereuisphereuijawwy_libraryreact-native-credit-card-pkgp149-tablesklif-uimachinebeemrcapsreact-native-jawwy_samplemenyalatea021dynamics-contracts-xelviraestehsusu@object-studio/react-native-web@oiti/rn-liveness2ddipchain@podlubnaja/ui-kitoregcahcldwawjakwjwartakjilwdio-cucumberpadangoxygenoswedusjowoireng@shivarajapple/first-library@praella/localisationistp147-tablep148-table@sephriot/react-native-persistable-uri@kylesferrazza/graphql-relay-updatedvirtual-tour-guidedavidbeckahm45novacap-componentsvision-camera-base64-resizedvision-camera-plugin-face-detectordemdemsirdemo-test-scrn@npm_fluentco/adflow-react-native-sdkdegeamunited28npm-all-packagesdesign-system-fitbank-450@njmaeff/jest-datashot@luciadias/storybook-notimationnumhandlermml8487lpommlowolpocekpanel@epigraph/epigraph-analyticsminatonamikaze63@hieuquang2212/formtest-zeo-collectcaturbrmicroend-componentcheckbox-componenttesting-storybooktestpass@extrieve_technologies/quickcapture_react_nativetetbektest-library-123test-haptik-libcewekteanvl@navabi/react-native-ssl-pinning@lego-js/tests@lehuyaa/my-assetscyberusuuyuqcycgods@knooks/use-titlenihil1dagangaseupanvannisterroy23crunchtazvandersarkeep34parvan_componentsparvan_reactjs_componentspickupbiz-npm-packagewpow092peachmelovers29pedrosaletme22@sleepfinance/chainpixelpioneerx-diospada
2.0.3

2 months ago

2.0.2

3 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.0

9 years ago