1.0.9 • Published 1 year ago

@juigorg/expedita-modi v1.0.9

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

@juigorg/expedita-modi 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('@juigorg/expedita-modi');
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

weakseti18nECMAScript 2022npmflagsrequestJSON-SchemaavahashReactiveXarraysconstsymbolsnodeworkertypedarrayparentseventDispatcherrequirenodejsdefinedeterministickarmafunctionsCSSECMAScript 2015negativeHyBiartresolveArrayBuffer.prototype.slicecollection.es6ecmascriptgetintrinsicrobustassertionlastfull-widthArray.prototype.flattenspinnerharmonyregularbrowserliststartertimecolorsexecfilerfc4122user-streamsconfigurablebundlerargumentiteratorec2typeofvarsshamkoreanschemarmfetchutilityvariablesstringprettyhasOwnPropertyzodString.prototype.trimrssdomtapjapaneseECMAScript 2018cloudformationpatchredux-toolkitglacierfindupsuperstructES2023istanbulconsumetextbinariespushreact-hook-formStyleSheetmobilejsonforkObject.keysshellrgbguidomitimmutableagentsetPrototypeOfpurecssregular expressionhasECMAScript 6Object.isestouchchromearrayRegExp.prototype.flagsjoichaibrowserslistelbargsquerystringRxpackagesutilparsekinesissearcheventEmitterexecuteasciicharactersdeepajvprocessterminalArrayBufferInt8ArrayvisualflatMapnegative zerocore-jsreadablestreamtrimStartincludesquotedirsesruleshttpasterisksArray.prototype.filteroffsetvalidatorchromiumserializeprivate dataautoscalingescapetraverseUint8ArrayhasOwnnameairbnbnativecoreES2016valuees6coveragerm -frgetPrototypeOfcurriedAsyncIteratorgetinpnpm9emitshimsyntaxerrorObservableRxJSoutputflatclassnamesbyteOffsetWebSocketssidefeedtestingdatehtmlES8toolkitglobal this valuefunctionaldynamodbArray.prototype.containssqsStreamsutilitiesttyworkspace:*unicodetransformdiff$.extendsubprocessbufferfpsendpointglobalclass-validatorFunction.prototype.namecallboundimmerwhatwgmomentmakewritabletrimLeftclientSymbol.toStringTagbannerreduceformstreamsjsdiffremovetoArraymodulelogelasticachestylingreact-hookses8routeUint8ClampedArraysnsMicrosoftcirculares7ownxhrcloudfrontmake dirWeakSetframerwaapiwalkpropertyfilterobjecttostringtagSymboles5point-freetypesgdprECMAScript 5columnscommandqueueMicrotaskdotenvenumerableserializationreactwgetcss-in-jsrmdirscheme-validationexpressmoveslicefastcopyes2018jsdomshrinkwrapformsfullwidthasyncprotobufpostcssJSONTypeScriptES2019readablesinatraglobalThismatchesajaxregular-expressionPromisebabel-corecontainsenvtrimRightwafCSSStyleDeclarationclonedeepclonees2015uplinthookformimportObject.assignbusyvalidqueuestyleespreecallbackspeedjson-schemanamesemojinpmignoreuuidUint16Arraytypescriptposepostcss-pluginspinnersawsastgetoptglobalsinternalbinoptimistequalitytrimEndfast-clonejQueryprotopolyfillvaluestranspilerES2018react animationfunctionyamlbounddeep-copyYAMLdependency managerInt16Arrayregexpcallbindselffpflatten0xmliefast-copyramdawidthindicatorvestdescriptionpluginsuperagenttypedarraysacornfile systemweakmapdescriptorprefixpyyamlsetpicomatchclijasmineprogressjsqsa11yarktypetypanionjsonschemafindLastextratapetslibcloudsearchECMAScript 2021optimizerutil.inspectchanneljshinttrimdeep-cloneArray.prototype.findLastfastifySystem.globalES2020Reflect.getPrototypeOfURLSearchParamsswfgetterdragfnmatchthreedataECMAScript 2019s3ECMAScript 3apicloudtrailESnextparserrestfulwritecommanderlistenerselectronchildjson-schema-validatorjsxloadbalancingReactiveExtensionsworkflowrapidfullconcatcensortransportfsformatphoneglobal objectsomewaiteast-asian-widtharraybufferintrinsicemrloadingmatchAllerrorinstallerprunerecursivees2016monorepoobjstringifier256SetES3URLES7toolscryptoidlebddpipeinstrumentationts__proto__positiveminimalio-tsprototypedayjses-shim APIsafeES2017typesafefast-deep-copymodulesPushstructuredClonefastisConcatSpreadableloggingwalkingonceistypedcloudwatchserializerwebObject.entrieshardlinksatomhelpersECMAScript 2016comparedependenciesclassnameperformanceperformantassertlookamazonl10nparentregular expressionstddes-abstractbrowsershebangeslintawesomesaucerdsECMAScriptbindframeworkpropertiesjavascriptUint32Arrayzxrm -rfBigUint64ArrayFloat64Arraymochacopytc39descriptorsrangeerrorextendWebSocketidentifierscharactertakespawnmkdirpUnderscorevalidationeventspathdirectorydefinePropertycall-bindlocalsymlinkstyped arraycomputed-typesenderstringifystyled-componentsfolderpackage managerESArray.prototype.flatWeakMapstylesslotroute53warningexpressionprivateinternal slotmanagerTypedArraystyleguideignorecompilerES5loggerArray.prototype.findLastIndexredactsharedarraybufferdebuginferenceexecpromiseviewsymbol
1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago