1.0.4 • Published 1 year ago

@teamteanpm2024/soluta-dolorum-perspiciatis v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@teamteanpm2024/soluta-dolorum-perspiciatis Version Badge

github actions coverage License Downloads

npm badge

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

Example

var isWeakSet = require('@teamteanpm2024/soluta-dolorum-perspiciatis');
assert(!isWeakSet(function () {}));
assert(!isWeakSet(null));
assert(!isWeakSet(function* () { yield 42; return Infinity; });
assert(!isWeakSet(Symbol('foo')));
assert(!isWeakSet(1n));
assert(!isWeakSet(Object(1n)));

assert(!isWeakSet(new Set()));
assert(!isWeakSet(new WeakMap()));
assert(!isWeakSet(new Map()));

assert(isWeakSet(new WeakSet()));

class MyWeakSet extends WeakSet {}
assert(isWeakSet(new MyWeakSet()));

Tests

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

TypeBoxECMAScript 3fastifyreadablestreampersistenthashspeccss nestingxtermtesterbrowserslistdirectoryansicurriedurlpyyamlisConcatSpreadableoptimiststyled-components_.extendhigher-orderReflect.getPrototypeOfoncefolderUint8Arrayshimwatchingprettyjestnpmiebootstrap cssworkerassertwaites5__proto__argparsecollection.es6classnamestape6to5astdateloggerwalkiterationcodeswordbreakwidthstablecallbackdependency managerruntimesignalses7command-line-0indicatorchromiumtypescriptmime-dbpoint-freeWeakSetasyncfulles-abstractairbnbwordwrapchannelJSONschemesettingscollectionfsES2016toStringTagcolorsposeforEachchildcolourstylesheetfunctioncryptotapdeletesetPrototypeOfcssjoiqueueMicrotaskdiffcensorbannertrimRightInt16ArraystylesclassnameprivatepromisesetterinstallthroatxhrES2022functionalsymbolwgetObservablesdescriptorutilityglobES2021tslibmulti-packagereducejsonschemawalkingeslintmkdirmapstringvalidateinspectbundlerclientUnderscorelockfileRegExp#flagsshebangString.prototype.trimrm -rfwritelintexitnativeObject.definePropertyESnextsanitization256stringifier@@toStringTagfastcopyURLSearchParamsrequestArray.prototype.flatES2018JSON-SchematypedimmerdeepcopyES2019WeakMapjapaneseextendwebcomputed-typescircularappRFC-6455listenersaccessorintrinsicpnpm9Uint16ArrayInt32ArraywebsitestructuredClonedebuggermatchestestdefinePropertysigtermfigletbuffer0iteratemimestartertestingimportiteratorStreamsbundlingcreateECMAScript 5descriptionArrayBuffer#sliceguidmoduledomhttpsreact posechineseReactiveXjsdomStyleSheetpackage.jsoncheckprefixescapeexpressvariablessharedarraybufferirqargumentratelimitSymbol.toStringTagzeroduplexmru$.extendchromeloggingdatastructureexecutablegenericsquotebabelfast-deep-clonepromisesclass-validatorsortutilsopenstylingwatchFilees2015ES7accessibilitycss variablegroupBylinuxcallbindgdprreact-hook-formlessdataviewObservablevalidnegative zeroencryptionttySetregular expressionmimetypesdeepclonecss lessreal-timeenumerableauthenticationprocessTypeScriptvestfullwidthbreakreact animationtextoptimizerMicrosoftweakmapwrapgetintrinsiccompilerconcurrencycjklanguageclonenodejsdiffeventsECMAScript 2018limitedvalidationhasfind-upcurlpicomatchtranspiletakees-shimsURLbatchyupspeedRegExp.prototype.flagsspinnerstrimLeftspring3dregexuser-streamsdeep-cloneopenerbrowserlistlruhardlinksobjectnamesjson-schemafantasy-landtraverseremovesetpurees2018spawnkeysCSSStyleDeclarationjsmatchupconcatstreams2task.envinternalvariables in cssfpsaferandom
1.0.2

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago