1.0.0 • Published 12 days ago

@landmineaknpm/nemo-laboriosam-fugit v1.0.0

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

@landmineaknpm/nemo-laboriosam-fugit 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('@landmineaknpm/nemo-laboriosam-fugit');
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

dirargsstyleguideObject.assigndefinePropertybundlingdeterministicimportwhichArray.prototype.findLastgraphqlfilterworkspace:*immutableeslintconfigaccessibilitystringES2015touchrapiddeepcopyES2023sanitizefullUint8ArrayfolderjsonschemaworkertypanionrequirebyteLengthprefixpositivetoolkitttyyupmove$.extendECMAScript 6packagessliceautoprefixernegative zeroprunedebuggermapconsumefindLastIndexfixed-widthterminalUint32Arraywordbreaksharedarraybufferwebargumentsymlinkidleemojisuperstructbootstrap cssunicodeArrayreducedom-testing-libraryextendbuffersspeedreuseonceajvtakestructuredClonerandomio-tsmkdirscacheoutputregular expressionspoint-freecurriedtrimStartpostcsspolyfillguidconcatprettyentriesargparseastgdprerrorfast-copyeslint-plugincommand-lineURLstringifyECMAScript 2020getterserializationshebangtoStringTaginstalldescriptionkarmaiterateTypeScriptlookfastifylanguageESTypeBoxreducereslintECMAScript 2021ES2017pnpm9asciiRegExp.prototype.flagspackageflagimmerxdghardlinkstrimEndbusyfseventsObject.definePropertyreact-testing-libraryArray.prototype.flatteneditorlaunchfpawesomesaucefastcopyvalidationuninstallapicallsortedparentexit-codeECMAScript 2018gradients css3urlsobjutil.inspectcomputed-typesclass-validatorsyntaxerrorjoicryptECMAScript 5arktypecolorsparseconstxssAsyncIteratorhashreact-hook-formwindowssortdeep-copygradients cssanimationstylesbabel-coreposegetPrototypeOfshrinkwrapboundsymboltypeenderinterruptsmochaopenerindicatorlasthigher-orderisConcatSpreadableURLSearchParamsenvspringsetImmediatefindcoreflatMapexpressionfile systemredactcallbindECMAScript 2015linewrapfullwidthReflect.getPrototypeOfvesttexttesteroffsetdefaultes6trimLeftes5watchingrateObjectopenWebSocketMicrosoftoperating-systemxtermpurecontainsgetxhrprototypeauthenticationArray.prototype.includeslogthrottleperformantsetcollectionl10nclassnamesstylingESnextObject.entriesjsxpackage.jsonassignformatmiddlewaremodulecopypasswordFloat32Arraysigint@@toStringTagwaitpicomatchspecmonorepoString.prototype.trimreadableclassesjson-schema-validationmulti-packagegetintrinsictoobjectconcatMaphookseventDispatcherreact poseECMAScript 2022shimregexpjscode pointsdeepclonetc39taptypescriptECMAScript 2017toSortedreadablestreamsettercsswritablegetoptWeakSettimeloggingconnect6to5RxformscryptoelectronbatchstringifiercolornegativeWebSocketsshamhttperror-handlingavaeventEmitterJSON-SchemabannerObject.fromEntrieslistenersform-validationObservableflatCSSsequencewgethandlersansibindtslibestreelrujsdiffiterationInt8Arrayreact animationbundlercore-jsnode__proto__opensmimecompilerBigUint64Arrayjsonirqless.jsWeakMapconfigurablepreserve-symlinkstaskfast-clone.envcmdwatchi18nstreamproperty256optionES6es2016deletewalkes2018numberassertstermbrowserlistArray.prototype.flatMaptestingpluginserializepropertiesidlengthStreamoptimistesless mixinsObject.isbabelfindupES5descriptorsbootstrap lessprogresswaapiregularargumentsforEachnopebyteOffsetcensorCSSStyleDeclarationzeroutilitiescommanderemitsignalomitassertschemajavascriptcss variableschemees2015utilityfunctionalmobileprotocol-buffersfsformattinggesturestranspilecall-boundtraversedataviewfastbrowserslistprivatedragchromechildPushIteratorsidetostringtagmake direscapeawaitratelimitcodesmime-dbECMAScript 2019throatvalidatetacitfunctionMapObservablesclassnameisdiffeveryes-abstractECMAScript 3RegExp#flagsexecutablepreprocessorES3includespopmotioninspectwatcherredux-toolkitObject.keysparentstestpushfast-deep-copypatchlinkObject.valuesforminternal slotcharacterpromisesstatusjasminepackage managerECMAScript 2023tscreatecliUnderscoreframeworkcolourhaswriteequalsearchtrimRightES2019intrinsicqueuestarterrmdirES2020RxJSReactiveExtensionsmimetypesstreamsmetadatashellcss nestingponyfill-0findLastkoreannodejssymlinkssyntaxYAMLtelephonetypedarraysnpmfast-deep-cloneArray.prototype.filterlimitECMAScript 2016jestrmArray.prototype.findLastIndexframerspinnersfiletypeofmomentES2021ecmascriptvalidrm -rfArray.prototype.flatexpresscompile lessbcrypttoArrayfantasy-landpyyamlrobustString.prototype.matchAllchinesekeysremovees8japaneseES2018groupByletjsdomgenericspostcss-pluginhelperstranspilerArrayBuffer#slice0cjkdeepconsolelessbreakloggerprotobufsettingsencryptionphonevariablesglobstyled-componentschaisharedtypedstartassertiontypesafeappObject.getPrototypeOfwatchFilepathmacosaccessormatchAllstylesheetwarningbytereal-timeresolvefigletfromclientqueueMicrotasksomeminimalSymbolmodulesES2022less compilerstatelessmatchesmkdirsuperagentsigtermlazyweakmapdefineInt16ArraysymbolsajaxStyleSheetlook-uparraybufferurlscheme-validationutilswebsitequotestablewidthlesscss
1.0.0

12 days ago