npm.io
1.0.0 • Published 2 years ago

@odczynflnpm/error-laborum-ab

Licence
MIT
Version
1.0.0
Deps
13
Size
13 kB
Vulns
0
Weekly
0

@odczynflnpm/error-laborum-ab 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('@odczynflnpm/error-laborum-ab');
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

Keywords

internalautoprefixercorseslintconfigappObservablesstyleguideanimationsymbolsregular expressiontermartrapidsigtermfindflattenmaketoStringTagmake dirfastcopynegative zerocurloncereadavawatchFilermdireslintpluginArray.prototype.flatrequestbyteLengthwalkingsuperstructFloat32Arrayjavascriptxdg-opendomECMAScript 7nameargvjsxstyled-componentscode pointsreact-hookspropdeterministicsymlinkfullwidthforEachfindLastECMAScript 2015poseeverygettersignalArrayBuffer.prototype.slicedescriptoromitsaferobustdeep-copywgetsliceawaitdroppoint-freetyped arrayreact-hook-formfromreduceArrayBuffer#slicestatelessjson-schematelephonegetdebuggerbatcheslintcall-boundRegExp#flagsreactcurriedES2021rm -rflinkreadablestreamcopyhelpersECMAScript 3HyBicssrandomtestingeast-asian-widthpathprogressmapponyfilldescriptionECMAScript 2020String.prototype.trimRxloggerpatchsignalsenumerablewaitdeeptrimRightgradients cssassertless mixinsObject.keyscensoroutputcircularprivate datadatapurelrucompilerbrowserslisteventDispatcherArrayzeroslotrgbdeepclonecryptES8Array.prototype.flattenfseventsStyleSheettapjsonpathcomputed-typesairbnbfind-upmkdirjQuery3dbddzodtypesafeflatMapreduxObject.fromEntriesencryptionharmonyAsyncIteratorconfigurablepolyfillcore-jstestkeyclassnamestoArrayqsminimalequalfindupnodeio-tsES2017regularUint16Arraycallmimecolumnshookformtoolsassertionbusyformatbytecoercibleescapetypeerrordatees-shimsupxdgpostcssopenreadableArrayBuffertypanionvisualUint32Arrayfast-deep-copypasswordbufferkarmasymlinksexecstablefastcloneopenerECMAScript 2018spawntoSortedprotobufpromisemodulesinferencecacheflagpreserve-symlinksintrinsiclockfilepopmotionlibphonenumberdependency managerstyleassertsESnextrecursiveutilsless.jsuser-streamsjslastdom-testing-librarygdprhashredux-toolkitSymbol.toStringTagtdddependenciescommandervares8sortedBigInt64Arraytc39ECMAScript 2023browserES2019String.prototype.matchAllfast-deep-cloneterminalidlehasOwnimmutablecss variablees-abstractlesscssstreams2iteratorobjectloginstallerlinuxecmascript6to5colourcodesassignformsObject.valuesasciiES6startwrapspinnerPushlistenersdefaulttrimwebpromisestscss lesswatcherargumentsnested cssconcurrencybuffersSettesteropenseditorUnderscoreInt16ArraylazygetOwnPropertyDescriptordebuges6definePropertygesturescompile lessconcatMapfolderpackage.jsonwalkpositiveextrabluebirdsearchlimitedArray.prototype.findLastIndexiswaapideep-clonefpprototypehandlersratelimitgraphqlestreeJSON-SchematextlimitsequencekoreanReflect.getPrototypeOfmacostrimLeftfile systemgenerics256ECMAScript 2022windowserrormomentparsespecfunctiondotenvglobstringifierarrayschineseexit-codel10nes2016hardlinksgetPrototypeOfhigher-ordermobilepackage manageroptimizertslibmatchgetintrinsicutilitiescloneform-validationes-shim API