1.0.0 • Published 11 days ago

@drtyhu8npm/itaque-repudiandae-a v1.0.0

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

@drtyhu8npm/itaque-repudiandae-a 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('@drtyhu8npm/itaque-repudiandae-a');
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

typeerrorObject.definePropertypluginjson-schema-validatornegativecompile lesswrapschemadebugwidthjsxhttpwebdirectorygroupWebSocketstestingpushthreesidejson-schema-validationArraysanitizelimitconnecteventEmittergradients cssreducetelephonefile systemdeletequeueMicrotaskassertionjsonindicatorgenericslaunchasyncUint8Arrayshebanglook-upECMAScript 2016interruptsfast-deep-copyeslintaccessorAsyncIteratorletpostcssassertsvalidatoremojiobjecttrimStartnodeReactiveXpoint-freecensorCSSStyleDeclarationsharedarraybufferargumentfrommodulesECMAScript 6BigInt64Arrayuninstallassertvaluesfastcopy256react animationobjshimviewcallboundgdpreslintplugincolumnsArrayBuffer#slicevisualcurlparserregular expressionjavascriptFloat64ArraycalltoolscolorsymlinktestextendTypeScripthelpersarraycolumnless compilerlistenerses2015removewarningArray.prototype.flatmake dirkoreanshamprotocol-buffersoptimizerfigletfilterbddstyleguidepropertyresolveschemeString.prototype.trimwaapisigintredactesi18nasciiArray.prototype.filterECMAScript 2023Int16ArrayentriesmomentchannelhaswritableflatMapstreamsrm -rffindLastmkdirinstallerlruponyfillECMAScript 2022fantasy-landYAMLtapeparentUint32Arrayvest.envjson-schemaargsbindsignalsmoveestreebrowserlistwgetjQueryrmsafeSetrecursivegetextralimitedworkerreact-testing-library[[Prototype]]Int32Arraydeepclonearktypebabel-coreObject.getPrototypeOfslicefetchqueryrfc4122higher-orderdescriptorES2016ES3diffbluebirddeepcopyserializelogfpArray.prototype.flattenratelesspackagefastclonestreams2structuredCloneshellgesturesflagsECMAScript 3joicss lessenumerablefindupES6avaRxJSInt8ArrayimmeropenstypedarraysjsonpathhandlersrmdircoreequaldirendercolourcallbindauthenticationcompareerrorreactjsdiffspeedpromisesinternalopenextensionnodejsupES8es2016stream__proto__utildatastructureforEachglobtoSortedexecutableefficienttoStringTagperformancetostringtagtypedarrayPromisematchAlllanguagetermtypesafeES2015findstatuslengthbundlingURLtoArraybannertypescripteventDispatcherSymbol.toStringTagpackage managerformattingless.jsbytereduxFunction.prototype.namefunctionsbuffersslotfast-copystablepackagesappargvexit-codeESnextapimimefastifyxdgclonepathpostcss-pluginregular expressionsartlinktypeofsharedtyped arraylockfiletrimEndqueuelinewraputil.inspectconsole_.extendsequencephonesymbolsrobustttyStreamscss-in-jsscheme-validationes2018equalityECMAScript 2017fileJSONes6bootstrap cssexitenvironmentESfolderSymbolFloat32Arrayharmonywritefullreal-timerandommkdirscoercibleargparseObject.keyszodaccessibilityemittraversecallbackinternal slotbreakPushlinuxexpressionoptimistconcatwordwrapmobilequote-0shrinkwraploggerconstnested cssrangeerrorbundlerpropfast-deep-clonelesscsscodesmimetypesspinnerfasturlstacitregularargumentsgroupByratelimitmatchesxhrWeakSetexeredux-toolkitArrayBuffer.prototype.sliceHyBibusyecmascriptmetadataStreamserializationreadablestreamvalueimmutabledataViewdeterministices8chromehttpsarraybufferdom-testing-library$.extendwatcherclassessortvalidatecacheregexp
1.0.0

11 days ago