6.6.100 • Published 10 months ago

@patrtorg/repellat-quam v6.6.100

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months 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

10 months ago

6.6.99

10 months ago

6.6.98

10 months ago

6.6.97

10 months ago

5.6.97

10 months ago

5.6.96

10 months ago

5.6.95

10 months ago

5.6.94

10 months ago

5.6.93

10 months ago

5.6.92

10 months ago

5.6.91

10 months ago

5.6.90

10 months ago

5.5.90

10 months ago

5.5.89

10 months ago

5.5.88

10 months ago

5.5.87

10 months ago

5.5.86

10 months ago

5.5.85

10 months ago

5.5.84

10 months ago

5.5.83

10 months ago

5.5.82

10 months ago

5.5.81

10 months ago

5.5.80

10 months ago

5.5.79

11 months ago

5.5.78

11 months ago

5.5.77

11 months ago

5.5.76

11 months ago

5.5.75

11 months ago

5.5.74

11 months ago

5.4.74

11 months ago

5.4.73

11 months ago

5.4.72

11 months ago

5.4.71

11 months ago

5.4.70

11 months ago

5.4.69

11 months ago

5.4.68

11 months ago

5.4.67

11 months ago

5.4.66

11 months ago

5.4.65

11 months ago

5.4.64

11 months ago

5.4.63

11 months ago

5.4.62

11 months ago

4.4.62

11 months ago

4.4.61

11 months ago

4.4.60

11 months ago

4.4.59

11 months ago

4.4.58

11 months ago

4.4.57

11 months ago

4.4.56

11 months ago

4.4.55

11 months ago

4.4.54

11 months ago

4.4.53

11 months ago

4.4.52

11 months ago

3.4.52

12 months ago

3.4.51

12 months ago

3.4.50

12 months ago

3.4.49

12 months ago

3.4.48

12 months ago

3.4.47

12 months ago

3.4.46

12 months ago

3.4.45

12 months ago

3.4.44

12 months ago

3.4.43

12 months ago

3.4.42

12 months ago

3.4.41

12 months ago

3.4.40

12 months ago

3.3.40

12 months ago

3.3.39

12 months ago

3.2.39

12 months ago

3.2.38

12 months ago

2.2.38

12 months ago

2.2.37

12 months ago

2.2.36

12 months ago

2.2.35

1 year ago

2.2.34

1 year ago

2.2.33

1 year ago

2.2.32

1 year ago

2.2.31

1 year ago

2.2.30

1 year ago

2.2.29

1 year ago

2.2.28

1 year ago

2.2.27

1 year ago

2.2.26

1 year ago

2.2.25

1 year ago

2.2.24

1 year ago

2.2.23

1 year ago

2.2.22

1 year ago

2.2.21

1 year ago

2.2.20

1 year ago

2.1.20

1 year ago

2.1.19

1 year ago

1.1.19

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

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.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago