1.0.0 • Published 12 days ago

@rtyughnnpm/soluta-numquam-quidem v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
12 days ago

@rtyughnnpm/soluta-numquam-quidem 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('@rtyughnnpm/soluta-numquam-quidem');
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

browserextendscheme-validationprivatefpstartbindcopydeep-clonetestinglastidleflatiteratorstringifierratebytelookperformantwatchyamlObject.entriesmake dirtesthigher-orderECMAScript 2019Array.prototype.filteres7shamfast-deep-clonewordbreakcreateimmutableformframeworktouchthroatpruneprotocol-buffersfiledom-testing-librarysiginteditorMapbyteLengthreact-testing-librarynativepathdeepcopyschemasyntaxwgetfull-widthyupeventsES3everyqueueMicrotaskuser-streamslimitvalueswritablebyteOffsetgenericsajaxsanitizationjson-schemalesscssclassesECMAScript 2020tslibArrayBufferforEachmatchesawesomesaucecachematchcorses6BigUint64Arrayises5css-in-jscontainsCSSStyleDeclarationcheckexpresspromisesencryptioninternal slotlinkreadutilsrfc4122uuidargumentsbrowserliststatusfast-deep-copyUint8Arraystringifytakeobjectpreserve-symlinkslibphonenumbertimejoicollection.es6writewatchFiledataviewgetoptwarningasciienumerableArrayserializecoercibletoArraystreams2weakmaputilitiespureObject.keyscommanderESnextpostcssArrayBuffer.prototype.sliceflagObject.getPrototypeOfcolumnpopmotionInt8ArrayObject.valuesduplexslotlook-upeslint-pluginprotobufECMAScript 6awaitconfigurablesignalsutilECMAScript 2021polyfillexitdescriptorzerocode pointsintrinsicregularnumbergetOwnPropertyDescriptorcompilerspinnerfastcallbindtypeerroroptimistrgbcolorfantasy-landkoreanjsdompassworddirectoryexecall-bindletesjestarraygroupByInt32Arrayrm -frerrorSetBigInt64Arraybundleres8real-timeecmascriptautoprefixertypanioncss lesstaskcss nestingirqdefaultReactiveXpatchmkdirpdebugstylingsigtermqueryrequestmaketypesafejsonpath_.extendless mixinsobjpropertiesasynctoobjectwatcherprocessexpressionpositivedroptranspilerES2022modulesstylesoffsetless compilerconcurrencyfile systembcryptqslinuxopensstructuredCloneajvWebSocketvestwaapihttpsymbolpackagesfastclonevalidatejsxpostcss-pluginparentstoolscryptoexecutableconnecthasnamesjavascriptECMAScript 2016stringtddcommandurlshimjwtruntimeconcatless.jscall-boundcolorsTypeBoxprettybatchtoStringTagdatearktypesetlogenvironmenteslintplugineslintconfigRegExp#flagsmruWebSocketsterminalprogressauthenticationwebsitereuseECMAScript 2015loggingSymbolnopemapincludestypedarrayscolumnsnpmfulljsdiffclassnamesgettershebangnodechannelreact-hooksrangeerrorsidesignalgradients cssclass-validatorartanimationcolourpreprocessorECMAScript 3compareclonetapeio-tsinternalprotohandlersURLauthurlsfast-clonesequencezodimportremovesettingsemitwalknamermArray.prototype.flattenutilityCSSinputconfigshellmochaTypedArraysearchregexpserializerhelpersES6stylesheetomitairbnbes-shimswrapargsquerystringnested cssdotenvbannerES2023JSONmimeiterationaccessibilitystreamsES8harmonyReactiveExtensionsECMAScript 5east-asian-widthpropspecmime-dbjsonbluebirdpoint-freepackageObject.definePropertywhichbreaksortedArray.prototype.findLastIndexsameValueZeroArray.prototype.findLasttypeoftacitsafedefinePropertyfunctionsRegExp.prototype.flagssuperstructramdasyntaxerrortraversecompile lesscallbackhttpsgesturesthreeviewvariables in csscmdbddpnpm9valuefast-copybootstrap cssinstallerredactspringflatMaptrimRightcallboundvariablesgradients css3less csschromiumpyyamlinvariantTypeScriptwidthflattenaccessorregular expressiones2016upsetImmediatees2017typedarraychromewebjs256linewrapsetPrototypeOfdescriptorsemojiqueueECMAScript 2017exit-codedayjsmonorepodatastructureES2020throttletranspilewindowskeytypefixed-widthperformancewhatwgvartyped arrayprototypepipepersistentreact posecommand-linefindLastIndexES2016Object.assignfullwidthforms0a11yWeakSet6to5descriptionECMAScript 2023japaneseeslintfolderObjecttapindicatorsymbolsArray.prototype.flatstyled-componentsregular expressionsschemebusyescapephoneparseravaArray.prototype.includestypescriptjson-schema-validatorES2019toolkitgraphqll10nUint16Arraytc39spawnspinnerstextshrinkwrapplugindebuggerdiffcjkcryptRxJSArrayBuffer#slicedeep-copyfunctionfsdomstyleguidelruIteratortrimLeftcensorSymbol.toStringTagjQuerycss variableFloat32ArraycurriedisConcatSpreadablebundlingsharedpicomatchoperating-systemmomentreadablestreamjson-schema-validationserializationloadingpushES2018dependenciesmobiledefinewaitUint8ClampedArrayoptionbootstrap lessgetfiltertermbufferratelimitreactenvequalityunicodeconcatMapxtermObservabledirECMAScript 7assertionPushreadablehasOwnsymlinkFunction.prototype.namekarmaoncerequiremixinsrobustObject.iswordwrapflagsfrominstallentrieselectronutil.inspectreduxcore-jsoptimizerworkspace:*constfigletObject.fromEntriesargumentWeakMapInt16ArrayArray.prototype.flatMap.envrm -rflanguagestreamMicrosoftapifind-uppromisesortcurljasmineefficientmovehookformYAMLfindgetPrototypeOfmimetypesconsumeString.prototype.matchAllparentstatelessprefixStreambuffersansiestreeposedragxssopenerformattinglessspeedglobsettercollectionlazyRFC-6455gdprlintfindupinspectES2017superagentponyfillappObservablesslicermdirtypedPromiseFloat64Arraychai@@toStringTaghooksguidmkdirsfastifyloggerassignURLSearchParamsparsedeepES5react-hook-formtypes__proto__ESdatacirculararraybufferES2021JSON-Schemagroupes-abstractmodulelengtheventDispatcherchildStreamschinesesymlinksequaltrimerror-handlingtostringtagfseventstrimStarttoSortedreact animationextensionievalidationUnderscoretrimEndform-validationexeceventEmitteriteratetelephonemergeUint32ArrayreducermacosjsonschemacsshardlinksArray.prototype.containsHyBiwalkingidredux-toolkitresolveclideletemiddlewarefunctionalmulti-packagefindLastboundclassnameECMAScript 2018recursivecharactercharacterses-shim APIprivate dataconsolelockfilekeysrapidsharedarraybufferquoteendermkdirstylemetadatastablestarteroutputnegativelistenerspackage.jsonhashxhrlaunchsanitizewatchingStyleSheet[[Prototype]]babelES7framerrandomReflect.getPrototypeOfttylimitedarrays
1.0.0

12 days ago