4.7.61 • Published 1 year ago

@zitterorg/sunt-consequuntur v4.7.61

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

@zitterorg/sunt-consequuntur 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('@zitterorg/sunt-consequuntur');
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

Symbol.toStringTagtestglobalThisprototypecliajaxbinpushhas-ownjoiFloat32ArrayparentsECMAScript 2022es7patchcoercible-0columnspecString.prototype.trimserializesearchES7descriptionsameValueZeroObject.isisConcatSpreadableassertsymlinkslanguageArray.prototype.flattenlocationURLentriestrimStartoptimistObject.definePropertytoolsqueryrecursivefeedvalueskoreanmakefindLastIndexES3asyncstringifieres5lintes-shimswalkingeventEmittereslintplugincjkfprdsmatchAllastSystem.global__proto__elbmkdirsjapanesetypescriptbrowserslistxmlglobal objectschemeFunction.prototype.namebyteLengthfastcopyclass-validatorincludesECMAScript 6code pointspluginrfc4122errorkinesisprogresswindowtoSortedtrimRightJSON-SchemaObject.entriesES2023shebangframeranimationoncezeroReactiveExtensionscoreiteratespawnqueueeventsES2022ArrayBuffersidetextconcatURLSearchParamscryptopropertiesCSSStyleDeclarationpackagesubprocessxtermserializationexpressioninspectStreamsreusedayjsresolvesortedquoterouterfindupbeanstalkdateES2020parsercollectiontelephonehttpcloudwatchramdamanagercharacterhookformfast-deep-copyObject.keysmetadatanegative zerogetmrustyled-componentsoffsetvpcwgetiteratorgitignore6to5ES2021visualassigntranspilecensormatchexecutemapreduceparseyupcoverageECMAScript 2017arraybuffercirculares-shim APIform-validationdynamodbwhatwginindicatorimmersetterreduxArray.prototype.flatMaptypanionfunctionsnpmignoreUint8ClampedArrayinferencepostcss-pluginlinkarraybyteshrinkwrapcomputed-typestapomitterminalECMAScript 2016autoscalingbrowserlistdatarandomsharedarraybufferiamAsyncIterator3dspinnersjson-schema-validatorconfigurableobjecteslintTypeBoxweakmapjshintuuidcall-bindtc39ECMAScript 2021hasOwnWeakSettypeofemojiRxtoobjectcodespurerapidObservablematcheswafunicodesettingsesgraphqlmoveawesomesauceprunenumberstylefiltertouchjsdiffeventDispatcherurlutilloadbalancingargvinstallerjsxdescriptorstypenameclassnameschemadomgenericscall-boundargssharedhashjsdomTypedArrayworkspace:*debuggerstoragegatewayfile systemvaluewebpackage managerregexphelpersartES2018StreamtacitSetquerystringzxpolyfillfpsavaWeakMapeverycore-jss3channeltoolkitoutputnodejsES2016hasOwnProperty256CSSObjecttypedarraylockfilenpminstallvestformremovefunction.length@@toStringTagfindLastcompareponyfillregexjson-schemaio-tssuperstructObject.getPrototypeOfmonorepoSymbolqspostcssprivatespinneremithtmlwritablearktypefast-clonerequireapilistenersvalidateloggerbinariesMapchromiumes2018_.extendcontainsspringtypedarraysatomPushrestECMAScript 7jasminefullwidthRxJSgetterpackagesrulessymbolreactsetImmediatehookseast-asian-widthharmonyconsoleWebSocketscolorsasterisksguidtsfolderwaitconsumepipelook-upjQueryflatMapuninstallforEachbundlinghelperfunctionArray.prototype.containstrimreadable.gitignoredependency managervariablesBigUint64Arraypicomatchcheck$.extendformsownArraycolorvalid
4.7.61

1 year ago

4.7.58

1 year ago

4.7.59

1 year ago

4.7.60

1 year ago

4.7.56

1 year ago

4.7.57

1 year ago

4.7.54

1 year ago

4.7.55

1 year ago

4.7.52

1 year ago

4.7.53

1 year ago

4.7.51

1 year ago

4.7.50

1 year ago

4.7.49

1 year ago

4.7.47

1 year ago

4.7.48

1 year ago

3.6.29

1 year ago

2.3.24

1 year ago

2.3.23

1 year ago

2.3.26

1 year ago

2.3.25

1 year ago

2.3.20

1 year ago

2.3.22

1 year ago

2.3.21

1 year ago

3.6.37

1 year ago

3.6.36

1 year ago

3.6.35

1 year ago

3.6.34

1 year ago

3.6.33

1 year ago

3.6.32

1 year ago

3.6.31

1 year ago

3.6.30

1 year ago

4.7.41

1 year ago

4.7.42

1 year ago

4.7.40

1 year ago

4.7.45

1 year ago

4.7.46

1 year ago

4.7.43

1 year ago

4.7.44

1 year ago

4.6.37

1 year ago

4.6.38

1 year ago

2.6.29

1 year ago

4.6.39

1 year ago

2.5.29

1 year ago

4.7.39

1 year ago

2.5.28

1 year ago

2.3.17

1 year ago

2.4.28

1 year ago

2.3.16

1 year ago

2.3.19

1 year ago

2.3.18

1 year ago

2.4.27

1 year ago

2.3.15

1 year ago

2.4.26

1 year ago

2.3.14

1 year ago

2.3.13

1 year ago

2.3.12

1 year ago

2.2.11

1 year ago

2.1.11

1 year ago

2.3.11

1 year ago

2.1.9

1 year ago

2.1.10

1 year ago

2.1.8

1 year ago

2.1.7

1 year ago

2.1.6

1 year ago

2.1.5

1 year ago

2.1.4

1 year ago

2.1.3

1 year ago

2.1.2

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago