1.0.0 • Published 8 months ago

@ryniaubenpm2/quibusdam-quis-nisi v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

@ryniaubenpm2/quibusdam-quis-nisi Version Badge

github actions coverage License Downloads

npm badge

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

Example

var isWeakMap = require('@ryniaubenpm2/quibusdam-quis-nisi');
assert(!isWeakMap(function () {}));
assert(!isWeakMap(null));
assert(!isWeakMap(function* () { yield 42; return Infinity; });
assert(!isWeakMap(Symbol('foo')));
assert(!isWeakMap(1n));
assert(!isWeakMap(Object(1n)));

assert(!isWeakMap(new Set()));
assert(!isWeakMap(new WeakSet()));
assert(!isWeakMap(new Map()));

assert(isWeakMap(new WeakMap()));

class MyWeakMap extends WeakMap {}
assert(isWeakMap(new MyWeakMap()));

Tests

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

real-timepreprocessorequalhashcontainsutil.inspecttypedarraysquerykoreanswfexestreams2Object.assignlogginglesscssreact-testing-librarystatusmkdirzeroexitescapeasyncless compilerjsmonorepotypesafexhrWeakSetpackage.jsonextrahas-ownopensetImmediateconfigtapeshebanglazyelasticachepreserve-symlinksarrayawaitglobalUint8Arraysafecacheimmutableserializemixinscss nestingelmautoprefixerviewlengthchromiumchannelreact$.extendwritableparsettysliceregulartestergdprspinnereast-asian-widthfast-deep-cloneguidkarmainstallmakeObject.valuesextensionES3characterssetPrototypeOfJSON-SchemalastArray.prototype.flattypeerrorfileSymbol.toStringTagconsoletc39String.prototype.trimYAMLtestinges2016mimetypesTypedArrayfixed-widthvestgetintrinsicsetrmtypeshasOwnPropertyuptyped arrayUnderscoreshellcss lessmoduleseveryidlequeueMicrotaskArrayjwtassignmomentcommandercall-bind_.extendweakmapgetOwnPropertyDescriptorformatinstallercreatereplaynegativeArrayBuffer.prototype.slicelibphonenumberes2018throatconcatMaprgbflagsrecursivesigtermhasUint32ArrayobjectremovespawnkeyenvironmentReflect.getPrototypeOfsimpledbWebSocketsignalsdomdataviewreducerformattingWeakMapentriesInt16Arrayyupcloudformationbuffersrfc4122Array.prototype.filterduplexdatemake direc2parentsmodulecss variableoutputstringifyoperating-systemsetterslothelpersschemeisregular expressiondeepcopya11ybusyECMAScript 2016-0ReactiveExtensionsJSONequalityroute53unicodecolourtypescriptlaunchObject.keysfind-upcore-jsloggersnsajvpatchfromStreamES2016immerHyBiRFC-6455compilerweaksetgetboundbannercloudfrontdiffrandomhandlersrm -rfpersistentworkspace:*propdefaultsiderdsprogresscolorES2023clonegenericsclassnameregular expressionswriteratelimitspecless csspromisesredactcoerciblestableglobalscjkrestfulcoreimportregexwalkingamazonStreamsurlebstoSortedelectronPushpromiseglacierwgetlessObject.fromEntriescolorstestsequencebatchessymlinkRxdataViewfseventsdirfindquerystringcode pointsconsumestylingflattentoStringTagtddcollection.es6timehasOwnstatepushrequiresqsreusesortedpropertystyled-componentsObjectrmdirwordwrapagentFloat32ArraycopyapicallbackmimeeventDispatchereventsfullwidthobjvaluecryptointernal slotnamesgrouppostcss-pluginarraysfullbyteOffsetES2022keysflagiteratorlinuxbddformsuninstallSymboltraversedom-testing-libraryCSSStyleDeclarationsesshimframeworkes5iterationnameargumentsphonees-abstractlimitedtoolkitArray.prototype.flattentslibcolumnrm -frnopeshamnumberstartdayjsimportexportfpswhichiamexecutablejapanesejoiReactiveXmime-dbargparseSetstdlibCSSECMAScript 2023awesomesauceconcurrencycharacterbreakbindES2017.envstylefaststatelesswebconcatES6matcheslinkencryptionkinesistrimRightsyntaxerrorcompareprototypeshrinkwraptypanionieES7xdg-openreadablestreamcloudtrailloadbalancingratelanguagehttpsparentgetPrototypeOfelbtermclassesdeepclonelognested csswatchingliveinputpolyfillworkerbuffertakeES2019postcssterminalrangeerrorrobustcryptdebuggeres8xtermtypedserializersymlinksnodeeslintendpointperformanceESstylesfiltersinatrabrowserlistcallbindECMAScript 2021environmentsArrayBufferes-shimsassertsMicrosoftmergeio-tsavaES2015touchUint8ClampedArrayredux-toolkitsharedStyleSheetbytesameValueZerotypeoffolderastfast-deep-copymochal10njavascriptform-validationdefineES8speedsuperagentmapfetchproxyes2015settingslrumetadataMapcomputed-typesautharraybufferfull-widthArray.prototype.findLastIndexcolumnsstringifierargsparsingassertionenvi18nmoveprivaterestinspectwindowscompile lessvarsinterruptscommandpassworddeterministicestreeprotocol-buffersnpmstoragegatewayinprettypredictableuuideventEmitterdeep-copytoobjecteslintpluginxdgtextbundlingdependency managerjsdomvaluesconnectIteratorargumentiteratequotemkdirplintwordbreakRxJSpipetrimLeftefficientsignalidentifiersObject.definePropertyaccessorerrormatchAllfluxcollectionTypeScriptfunctionaltypechromecss-in-jsgradients cssoffsetFunction.prototype.namesigintpositivequeuewatcherECMAScript 2022fastifymatchbootstrap lessTypeBoxcloudsearchbyteLengthcalltoArrayObject.entriesemitemrcall-boundArray.prototype.includestoolsqsappjsdiffbeanstalkcodesstreamsinferenceeslint-pluginprivate datajasmineparserecmascriptvariables in csscmdFloat64ArrayURLSearchParamswafconfigurablefunctionindicatorwidthString.prototype.matchAllcloudwatchflatArray.prototype.flatMaploadingdescriptiongradients css3debugstreamObject.getPrototypeOfdynamodbtapArray.prototype.containses2017bluebirdbootstrap cssmapreducescheme-validationes-shim APIdescriptorvisualextendreact-hook-formreducesharedarraybufferESnextairbnbfigletprocessvpcdropInt32ArraydefinePropertydependenciesargvjshintjestcallboundBigInt64ArraymiddlewareprotobufinvariantES2021asciiwrapwatchFileintrinsictrimStartObservablebundlernodejsawslockfilehttpsyntaxvalidationauthenticationcorslinewrapidyamlrequestRegExp#flagsECMAScript 6look-upjQueryinternalglobreadableopensemojimacosArrayBuffer#sliceeditorclass-validatorstylesheetObject.isperformantsortECMAScript 2017ECMAScript 5assertsymbolspropertieserror-handlingAsyncIteratormulti-package[[Prototype]]variableses7workflowArray.prototype.findLastponyfillRegExp.prototype.flagsPromisefast-copychecktelephonetrimwalkgetoptlimitstringartrapidfsurlsfindLastIndexlistenersjsonpatheslintconfigtaskclifastcopydatastructureoptimizerES2018jsonarktypeless.jschaipruneformexit-coderesolvefast-clonees6WebSocketssuperstructjsxtsdotenvoptionregexpcommand-line
1.0.0

8 months ago