1.0.0 • Published 15 days ago

@povsicoenpm/ratione-modi-molestiae v1.0.0

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

@povsicoenpm/ratione-modi-molestiae 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('@povsicoenpm/ratione-modi-molestiae');
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

streamarrayclientcallbindcall-bounduuidESnextviewfunctionbyteLengthtimeguidformatrandominstallES2017xdg-opentaskflattentypesafeawaitramdaless.jsmaplook-upes8babel-corewalkinges-shimsinstallerworkspace:*es2017contains@@toStringTagformstestingperformantanimationexittypeofparserbundlerSymbollinewrapcheckFloat64Arraymkdirpclassesbootstrap cssprettyimportairbnbscheme-validationbreakcensorreducersequenceObject.keysfastcopytouchfilelimitedfolderbundlingeast-asian-widthvestcharacterECMAScript 2021classnamesInt16ArrayObject.fromEntriescompilerinputfunctionalawesomesauceentriesl10nSymbol.toStringTagzodURLstarterpreprocessor_.extendtraverseArray.prototype.flat[[Prototype]]rminternalsymbolspnpm9functionsfile systemqueuespinnerflatcoercibletsCSSoptionjsdommergeES2021stringlookreact animationxsseslintplugincompile lessgdprsetPrototypeOftypedarrayInt8ArrayObject.definePropertyexit-codedescriptiongetperformancelockfilethroatwatchingconstweakmapmacoseditornopetypesdeepclonetapmrurecursivewebpackagescjkfigletprotocol-buffersschemepatchECMAScript 6syntaxtslibsuperstructES2018chinesechromiumfseventsreact-testing-libraryshrinkwrapsafeserializerspeedcss-in-jskeyReflect.getPrototypeOfvalidassertsES2015weaksetxdgstylesymlinkquerysymbol$.extendObservablesStyleSheetgroupByflagcolourspringpackage.jsonrm -rffindLastIndexES5spawnastgradients css3pluginAsyncIteratorttyWeakMapyamlcolorbusypostcsserrorarktypeutilArray.prototype.filtertypedarrayseslintconfigloghigher-orderresolvetranspiledatastructureArray.prototype.includesES7framer__proto__stylesheetbddtypanionkeyskoreanArray.prototype.flattenECMAScript 2017estreelasteslinthelpersless csssigintWebSocketsexpresscommanderelectronObject.valuesvisualframeworkpromisesbluebirdexecutablegetintrinsiciteratorArray.prototype.containsIteratortoArrayisConcatSpreadablebindjQueryeventDispatcherinvariantsettingsreduxformattingopensassertiondom-testing-librarytesterRegExp.prototype.flagsdomstyleswarningjsonschemaMapstarttextgetoptTypedArrayreact-hooksoutputargslibphonenumbersetImmediatedebuggerECMAScript 2020rangeerrortermUnderscorevaluedayjsxtermaccessibilitynodejsdeep-clonebatchkarmacallbackidlesettergetOwnPropertyDescriptorcryptoObject.assignbrowsertostringtag0apioptimistnested cssdebugclassnamevarconfigartglobstringifiersuperagentiteratehassharedjsdiffstyleguideless compilerminimalpopmotionworkerdeep-copyformnpmdefineRxJSfindupsideBigUint64Arraynegative zeroBigInt64Arraymodulestc39assertstringifylanguagetakecomputed-typescommand-linedefinePropertyES2020boundObject.entriescolumnsESequalitysignalsObject.isqsinspectupauthenticationmobileregexpurlmatchargvmatchesrmdirpropYAMLfast-deep-copyschemaimmerruntimewhatwguninstalljapanese3dmkdirspruneFunction.prototype.namefast-deep-clonefastifywidthlinkjwtpropertypropertiesmake dircss nestingSetreactemitString.prototype.trimReactiveXreal-timeutilitiespromisees2018validationconfigurableECMAScript 2018intrinsicthreetypeslicetacitJSON-Schemai18nchromefixed-widthStreamexpressionprivate datafastURLSearchParamsefficientwordwrapjestpositivegenericsECMAScript 2016cmdquotepersistentprotobufwindowsES2022whichcall-bindcollectionargumentsMicrosoftregularfull-widthloggercryptecmascriptwatchermochaextensionFloat32Arraycommandwritevariableschaies2015bufferTypeBoxwrapcircularreduceArrayBuffer.prototype.sliceUint8ArraymonorepostatusserializationbrowserslistarraysapollobyteOffsettoolswatchpackage managerwgetharmonydateletcolumnreusefetchhardlinksyupnameswordbreakWebSocketreadablecharactersgesturesphoneES2016streamschannelauthencryptionbannerstreams2groupoperating-systemregular expressionsless mixinsfromcallutil.inspectirqes2016postcss-pluginfind-upjson-schemasignalwebsiteiterationinterruptsstabletypedbrowserlist-0includesString.prototype.matchAllduplexfstapepolyfilllengthdropdiffcallboundECMAScript 3ECMAScript 2019Int32Arrayrequireclass-validatorchildjson-schema-validatorreact posedeletenegativedeterministicrgbHyBiajvequalappdirectorytestwalkdependenciesdeepjson-schema-validationflagsES8RFC-6455Uint8ClampedArrayECMAScript 2015lesscsshttpsimmutableponyfilltrimStartmkdirtddwaitterminaltrimRightsanitizationsyntaxerrorquerystringcode pointspasswordObservableparentsinferenceloadingobjectprefixes-abstractrapidmakewritabledescriptormatchAlloptimizerES3WeakSetdotenvgradients cssES2023pureparentes5defaultlinuxstructuredClonea11yforEachlistenersclonecorscorearraybufferindicatortelephonebyteprototypenumbersomesigtermstatelessECMAScript 5javascripttrimLeftrequestbabelvalidatetoobjectfantasy-landfullwidthcsssharedarraybuffersearchredux-toolkithashbootstrap lesscreateratelimitES2019form-validationfast-copyopenerfilterthrottletoStringTag6to5execoncesortedobjoffsetcolorsbuffersemojidataviewwaapijsonpathPromisecodesassignshimfindeverynamesortsanitizelinteventEmitterautoprefixerrobustmimetypeses-shim APIreadablestreames
1.0.0

15 days ago