6.6.100 • Published 2 years ago

@patrtorg/repellat-quam v6.6.100

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@patrtorg/repellat-quam 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('@patrtorg/repellat-quam');
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

cjkcharacterRxECMAScript 2018JSONcloneintrinsicdeleteESnexttelephonestylingbundlingcall-boundECMAScript 7pathamazonhelperprefixES2020bindclassnameformpyyamlexecuteES2021settingsprettyfast-cloneauthcontainsbrowserslistreadableurlelasticachetrimRightencryptionjsdomqsrangeerrorinferencehttpsTypeBoxautoprefixerservicepatchimportenvironmentconfigurableartreact-hooksrandomtypesafecss lessObject.fromEntriesswflinttypaniongetintrinsicfpMicrosoftcreate@@toStringTagObject.getPrototypeOffilterrgbdomjoiinputawsawesomesaucestarterl10nECMAScript 2022forEachsymbolpropertieschannelbrowserlisttypedarraysrecursiveES7internaltranspileYAMLHyBiobjectgdprcore-jsio-tsreact-hook-formString.prototype.trimenumerablevariables in cssJSON-SchemaWeakMapexitiepluginpromiseeventEmittertddjshintremoveshimruntimefigleteast-asian-widthfullObject.isshrinkwrapselfajvoptimizeriteratewriteproxyasyncfpsBigInt64Arraysignedcachedataviewexpressiondayjsarktypeclientreact poseworkerwritableoptionauthenticationsideRxJShas-ownnativenpmignorelockfileArray.prototype.containsjavascriptObjectkeyquotehotobjprivate datatypescriptcommandjson-schemabrowsereslintspeedES2023eventsbddtoSortedsesviewmapreduceAsyncIteratornpmES50fullwidthentriesbinariesiteratorreduceshamcssinternal slotes6elbregexpcss variableworkflowprunesequenceexit-codefantasy-landelmloggingvaluetypeofnested csssubprocessletwidthcryptotranspilerbcryptexpressECMAScript 2021persistentclassnameswaapiasciieffect-tsmobileTypedArrayjapanesegesturesgitignoreES2016descriptorscolorArray.prototype.findLasta11yredirectfast-deep-clonecensorES2022nodestoragegatewayzodi18nSymbolpreserve-symlinksconcatMapframerutilitymetadataprivatemkdirpReflect.getPrototypeOfsymlinkswindowArrayBuffer#sliceFloat32ArraypropertyefficientvalidecmascriptSetglobal objecthandlersec2TypeScriptbinaryIteratorfetchlinkwafmruparserpolyfillomitrapidincludeslibphonenumberservercircularemitdaterulesmonorepoMapregularimmutablecurriedgetponyfilllocationfast-copyhookformback-endstylepredictableargvECMAScript 2023chinesewindowsutilajaxarraybuffermulti-packageargumentlrucoerciblezeroeslintpluginsigint256columnsPushUnderscoreownuser-streamsmkdirsBigUint64Arraypositivecall-bindES8wgetsymbolscomputed-typeslivetyperedux-toolkitSymbol.toStringTagObject.keysreact-testing-librarycommanderStreamsfastcopylessstringifierenderbuffersexecfileteststructuredClonelazycopyInt32Arraymake dirunicodespawnless.jsperformancestreamstringvariablesperformantArray.prototype.findLastIndexutilsInt8Arraypnpm9colorsRegExp#flagsprototypedirectoryqueueMicrotaskpreprocessorkoreandynamodbsetImmediatestyleguidepackage managerform-validationqueuestreamsfile systemuninstalllogflatgetPrototypeOfdataViewxhrsymlinkfilearraygradients css3sharedes2015autoscaling_.extendlastglobal this valueexecfunctionalaccessores5chromiummixinssomeproto$.extendglobalshardlinkserrorbundlerdeterministiccss nestingconcatdefinePropertydeepclonewhichtakepostcss-pluginpackagesfluxelectroncryptidlepopmotionapollogetoptformattingargsslotwalkassignhasOwnECMAScript 3weaksetmakemoveassertvalidateendpointcurlgroupreadablestreamES2017collectionmatchthreebabeltesterequalityURLUint16Arrayebsdataspinnersredactregular expressionforkPromiselistenersdirless mixinscloudsearchsignalses2016deep-copyECMAScriptbootstrap cssenvironmentsdragmacosutil.inspectscheme-validationxtermstatelessgetOwnPropertyDescriptorgraphqlesfindcallreplaybufferes2018diffmapArrayBufferes2017Array.prototype.flattrimsetstyled-componentsserializerassertsflagskinesisUint8ClampedArrayvaluesSystem.globalObject.assignflagObject.valuescloudformationUint32ArrayweakmapharmonyimmerissignalrequireanimationStyleSheetvardeepcopyprocesspackage.jsonextraagentjwtvpcObservableestreeramdaschemecoretslibcheckpasswordroutingtypeerrorparseformatpicomatchtyped arrayes7momentterminal__proto__hasOwnPropertyfastjson-schema-validationreduxECMAScript 56to5querystringFunction.prototype.nametrimEndhandlersafetostringtagpostcssoutputtacitmodule[[Prototype]]escapeflatMapWeakSetArray.prototype.flattenpurebannergroupBychaistable.gitignoreWebSocketstringifyglaciermkdirECMAScript 2019point-freeresolvecloudtrailprotobufgetterloggerbeanstalkzxcollection.es6interruptses-shimspushes-abstractgenericsdom-testing-librarybyteOffsetapiloadingerror-handlingFloat64ArrayjsxdescriptorconfigignoreboundjsECMAScript 2016function.lengthjsdiffkeysReactiveXglobalreadtransportbintypesES3fnmatchspringcallbind
6.6.100

2 years ago

6.6.99

2 years ago

6.6.98

2 years ago

6.6.97

2 years ago

5.6.97

2 years ago

5.6.96

2 years ago

5.6.95

2 years ago

5.6.94

2 years ago

5.6.93

2 years ago

5.6.92

2 years ago

5.6.91

2 years ago

5.6.90

2 years ago

5.5.90

2 years ago

5.5.89

2 years ago

5.5.88

2 years ago

5.5.87

2 years ago

5.5.86

2 years ago

5.5.85

2 years ago

5.5.84

2 years ago

5.5.83

2 years ago

5.5.82

2 years ago

5.5.81

2 years ago

5.5.80

2 years ago

5.5.79

2 years ago

5.5.78

2 years ago

5.5.77

2 years ago

5.5.76

2 years ago

5.5.75

2 years ago

5.5.74

2 years ago

5.4.74

2 years ago

5.4.73

2 years ago

5.4.72

2 years ago

5.4.71

2 years ago

5.4.70

2 years ago

5.4.69

2 years ago

5.4.68

2 years ago

5.4.67

2 years ago

5.4.66

2 years ago

5.4.65

2 years ago

5.4.64

2 years ago

5.4.63

2 years ago

5.4.62

2 years ago

4.4.62

2 years ago

4.4.61

2 years ago

4.4.60

2 years ago

4.4.59

2 years ago

4.4.58

2 years ago

4.4.57

2 years ago

4.4.56

2 years ago

4.4.55

2 years ago

4.4.54

2 years ago

4.4.53

2 years ago

4.4.52

2 years ago

3.4.52

2 years ago

3.4.51

2 years ago

3.4.50

2 years ago

3.4.49

2 years ago

3.4.48

2 years ago

3.4.47

2 years ago

3.4.46

2 years ago

3.4.45

2 years ago

3.4.44

2 years ago

3.4.43

2 years ago

3.4.42

2 years ago

3.4.41

2 years ago

3.4.40

2 years ago

3.3.40

2 years ago

3.3.39

2 years ago

3.2.39

2 years ago

3.2.38

2 years ago

2.2.38

2 years ago

2.2.37

2 years ago

2.2.36

2 years ago

2.2.35

2 years ago

2.2.34

2 years ago

2.2.33

2 years ago

2.2.32

2 years ago

2.2.31

2 years ago

2.2.30

2 years ago

2.2.29

2 years ago

2.2.28

2 years ago

2.2.27

2 years ago

2.2.26

2 years ago

2.2.25

2 years ago

2.2.24

2 years ago

2.2.23

2 years ago

2.2.22

2 years ago

2.2.21

2 years ago

2.2.20

2 years ago

2.1.20

2 years ago

2.1.19

2 years ago

1.1.19

2 years ago

1.1.18

2 years ago

1.1.17

2 years ago

1.1.16

2 years ago

1.1.15

2 years ago

1.1.14

2 years ago

1.1.13

2 years ago

1.1.12

2 years ago

1.1.11

2 years ago

1.1.10

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago