1.0.0 • Published 1 year ago

@ryniaubenpm/quas-quaerat-nam v1.0.0

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

@ryniaubenpm/quas-quaerat-nam 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('@ryniaubenpm/quas-quaerat-nam');
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

amazonnpmbusyECMAScript 3dependency managervariables in csslimitedshellthrottlewatcherthroatJSON-Schemaresthttpview256ES2020internalautoprefixerjsxdynamodbmatchAllnodejsextralook-upUint8ArrayfilterfseventslinkmiddlewarerequireJSONcomparejQueryArray.prototype.flatMapes2016sortedwritablecensortouchSymbolstructuredCloneiesettingsassertsAsyncIteratorfixed-widthponyfillimmercss lesskeystreamswatchpreserve-symlinksinternal slotString.prototype.trimtypescriptdefinereplayrm -rfairbnbzerosesObject.fromEntriesformatstringregexWebSocketcloudfrontslotfindupestreetoSortedcolortelephonees7nodejsdomtrimStartendermakevaluesmime-dbstringifyprefixprotobufcss-in-jsproputil.inspectTypeBoxES2023sameValueZeroappcollectiondiffresolvewebsiteECMAScript 2018deep-copyspeedastdiridentifiersInt16ArraycircularcloudsearchsearchArrayelbglobalweakmapiterationcode pointsstreams2getvestuuidjsonpathRxJSECMAScript 5byteLengthargvlistenershasOwnES2016react-testing-libraryextensionasciiwaitwatchFiledefaultes2018snsconsumeinflattenECMAScript 2017livevariablesschemecallboundserializerString.prototype.matchAll0helpersfast-clonechromiumUint8ClampedArrayduplexlintcolumnprettyES2017pathhandlersfinddatastructurecoerciblefigletpreprocessorwalkinstallerfindLastTypedArrayES2019Function.prototype.nameflagsbrowserslistutilitysignalawesomesauceES7formsetPrototypeOfexpressArrayBuffertyped arrayomitendpointirqdataviewless compilerstoragegatewayform-validationlanguagefluxfscompilerjasminetester.envgetintrinsicelectronprotocol-bufferssortmatchschemaescapexhrsymbolrequests3parentconsoleconcatfull-widthsqstestingeditorwordbreakcall-bindisConcatSpreadableRxcollection.es6stablepersistentwritejsdifffilecallbackawscloudtrailobjectstyleflatES6fastcopybcryptchildMapsymbolsreduceYAMLzodmoduleidmochaexetermgroupshimtostringtagfile systemterminaloperating-systembyteOffsetpropertiesclass-validatorconcurrencypostcssgetterstdlibbluebirdcorswhichtypefunctionreact-hooksfpsreadablepositiveenvtypeerrorparsingredux-toolkiterror-handlingconcatMaplazydirectoryclassnamenamemoduleshttpstoobjectvisualeslintconfigec2make dirconnectnested cssformattingsetterreadelasticachepushrangeerrorratelimitlesscsstapsymlinkshookstypedloggerserializationworkspace:*gdprES2018tsrmsinatracontainscompile lessstarterwalkingchinesetaketc39copyesless mixinsregularexittapeperformancepredictablebrowserrfc4122glacierRFC-6455ReactiveExtensionsrandommobileoptionprocesstypesstylesoutputtypedarrayES3openswindowsenvironmentsrdsstartunicodeeveryperformantArrayBuffer#slicebootstrap cssECMAScript 2021sigterm$.extendURLSearchParamsurlsArray.prototype.containscallvpcfast-deep-copynopees2015WeakMapfunctionswgeteventDispatchervaluecloudformationsharedarraybufferUint32ArraytypeofbatchconfigES2022parentsgetoptprogressbufferstoStringTag-0widthauthenticationebsboundargumentprunedom-testing-libraryyupxdg-opencolumnserrorwordwrapstylesheetinterruptsspinnersobjarraybufferenvironmentfolderTypeScriptpackage managertoolspackageArray.prototype.flattenroute53Array.prototype.flattexttaskmimequeueMicrotaskspecquerystringajvFloat32ArrayasyncdeterministicsimpledbStreamchannelES2015argparseavaimportexporttypanionArray.prototype.includestoolkitSymbol.toStringTagPushlessdebugwhatwgismixinsbreakBigInt64ArraySetmergedataViewutilitiesECMAScript 2016execECMAScript 6package.jsonWeakSeteslintpluginxdgcryptflagvalidationtrimRightequalityECMAScript 2015cliprotoproxytestbootstrap lessnamesarraydependenciesio-tspyyamlURLhookformregular expressioninvariantkinesiscss nestingdescriptorsenumerableObject.valuespluginchromebundlerObjectassertion_.extendArray.prototype.filterl10nonceObject.entriesfind-upmove__proto__fastclonejesthardlinkstrimLeftdeepcomputed-typesfulltrimmkdirmetadatainferencepromiseFloat64ArraytddArray.prototype.findLastIndexstream[[Prototype]]japanesefromlinuxbufferfast-deep-clonecommandawaitremoveiamdateiterateupconfigurablettyscheme-validationlockfileefficientreal-timesuperagent
1.0.0

1 year ago