1.3.15 • Published 1 year ago

@kollorg/labore-magnam v1.3.15

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

@kollorg/labore-magnam 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('@kollorg/labore-magnam');
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

eslinttypanionperformancereact-testing-librarygdprfindLastES2021Array.prototype.flattenUint32ArraytextuninstallAsyncIteratorcloudtrailtrimLeftprivateECMAScript 2021acornpathECMAScript 3assertionString.prototype.matchAllfind-upttytacitlogformattingownshrinkwrapoptimistisConcatSpreadableexecuteassertsnpmignoreloadingregularansisubprocessiesameValueZerolockfilereverseduuidcolorsefficientdefineclass-validatordatefast-deep-copynpmtestingstyleguideroutebundlerfindLastIndexfast-deep-cloneconsolecjkArray.prototype.flatwidthframervarargumenteverypopmotionarrayonceECMAScript 7TypeScriptquerywindowpatchinferencepino@@toStringTagenvnodereworkzodMicrosoftmobilegetterpropmulti-packageistanbulproxykeyprettytyped arrayArray.prototype.findLastIndexcomputed-typesnodejssortedsafeArrayes6feedomitidentifierscharactersbusyjoiajvdroprmdirqueuebindpackagesparentsslotobjString.prototype.trimmanipulationcssasterisksidsettingsphonedebuggerelbgetchrometypedarrayTypeBoxbrowserslistmake dirregular-expressionconcatMapcolorcharacterCSSStyleDeclarationes2015ES2019vpcECMAScript 2023metadataspeedperformantmodules.envtoobjectfastvalidationECMAScriptinternal slottdddescriptioncollection.es6httpsserializationinspectglobalec2instrumentation-0chromiumspinnersetPrototypeOfcallbindmonorepobddupwalkatombinariesglobalThisReflect.getPrototypeOfwhatwgxtermkinesisweaksetimportexportInt32Arrayruntimewritemergedeepcopyredactsharedarraybuffertrimcreateteststyled-componentsfile systemcall-boundequalroutingeslintconfigreact poserequirees-shimsfromES2016ES2018coretslibyamlwarningautoscalingregular expressionresolveTypedArraymapreducerequestfindawesomesauceeventEmitterassertcloudformationSymbolcloudsearchStreamsES3JSON-SchemaincludesebsfilterbuffersHyBiforktoReversedcode pointsstableredirectReactiveExtensionsintrinsicdeep-clonerulesbinarycloudfrontflattenpyyamlloggeranimationfunction.lengthlocalnegative zeroroutererrortoSortedes7dragObservableFloat64Arraypluginminimalbanneramazonposecolumnseast-asian-widthESlook-up6to5promiseinputhardlinksutilitiesschemagitignorewaitRegExp#flagsmovespringiscopychannelredux-toolkitURLSearchParamsenvironmentMaphelperavajsrestdescriptorsawsserializeexpressionprotoviewdatanumberreversefileartYAMLrm -rfroute53typescriptunicodefsjson-schema-validationECMAScript 2019ECMAScript 2015eventDispatcherutilityjsdomECMAScript 6fantasy-landquerystringtypesafechaicall-bindkoreanaccessorlistenerscore-jsvalueURLstylesmoment
1.3.15

1 year ago

1.3.14

1 year ago

1.3.13

1 year ago

1.3.12

1 year ago

1.3.11

1 year ago

1.3.10

1 year ago

1.3.9

1 year ago

1.2.9

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago