5.3.99 • Published 10 months ago

@patrtorg/nisi-porro v5.3.99

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@patrtorg/nisi-porro 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/nisi-porro');
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

styleminimaljwtbrowserlistinputxtermArray.prototype.flatMapECMAScript 2017ES2017endpointUint8ArrayesisUint16Arrayloggingdeep-copyperformanceenvironmentargsRFC-6455callbindAsyncIteratormkdirasciisignalsaccessibilityflagkoreanObject.valuesdomfigletequalfilterECMAScript 2023less compilercheckhardlinksbundlingsharedarraybuffertypeofreact animationthreetypesES2016jQueryassertReactiveExtensionsobjgroupByhandlerslinkvalidationchinesetrimStartstreamtranspileriterationes2015babelcolumnsreadabletextnativeerrorwritesnsstreamsclassnamesec2slotttyaccessorzodmkdirpESnextbddloadbalancingmruroute53flatMapstyled-componentscollection.es6Uint32ArraypreprocessorserverdeepcloneconstwaapienumerableObject.isstylingienpmpnpm9css lessvpccallHyBiWeakMapmatchastbundlertesting[[Prototype]]stringifiersettingsbootstrap cssjapaneseownes6l10nindicatorcolorsfindLastTypeBoxreduceomitpushredux-toolkitjsonBigUint64ArraydiffhotnopeglobalqueryReactiveXgettereffect-tselectroninvariantdirectorylengthreact posepropertyemremitflagstimeutilityprotobufdynamodbajventriesinstallersameValueZerojsmake dirconcatMapspeclibphonenumberdatehttpIteratorObject.entrieschaiECMAScript 2016windowbyteLengthpersistentasyncArrayBuffer.prototype.slicecomputed-typesmapjsonschemagenericsFloat32ArraycoretranspilerulesbusyMapshrinkwrapstoragegatewaycreategraphqlspinnerspackage.jsontostringtagWebSocketsmomentsignedfluxstructuredClonedescriptorspawnelmscheme@@toStringTagzerofilenodees2016exit-codetraversefast-cloneuploadECMAScriptstateposeback-endawsdotenvgitignoresimpledbxhrbufferstc39core-js_.extenddeterministicpruneextenddataunicodeselfwritableObject.keysestreeextraplugintacitparserInt16Arrayinstallreact-testing-libraryconsoleutilitiesswfexecuteArrayBufferloadingSymbolsymbolsspringmakedeepcopySystem.globalpatchformscrypteslintpluginbinarieses7commandimportexportmovenpmignorejson-schema-validationreact-hooksidlesubprocesslocationzxexitvaluesquerystringbinaryES2019less.jspuretrimEndfastgrouppostcss-pluginremovekeyES8fpsstatelessStreambootstrap lessrgbnegativegetPrototypeOfmatchAllES2022StyleSheetpositiveeast-asian-widthcensorbrowserslistenvlinuxcliES2018copymergeargvBigInt64Arrayshimmockinternalfastcloneuser-streamsqsreact-componentes2017execfilecomparemkdirsPushsymlinkdataviewarktypevalidateassertswhatwg256hooksbuffercsstrimarraycryptowidthproxylive3dmonorepoObject.getPrototypeOfautoprefixerencryptionSymbol.toStringTagsignalmetadatachannelcss nestingCSSStyleDeclaration.gitignoreautoscalingmockingsortedurltrimLeftless cssdescriptionoptionfront-endfindLastIndexhelpersarraysgetintrinsicmoduleglobalspolyfillTypeScriptintoSortedwarningio-tsyamlform-validationjavascriptnodejskinesiswafWebSocketJSONfast-copybcryptconcattypescripthashbytetddJSON-Schematyped arraysettershellreduxhasOwntoobjectinferenceiamansiglaciervarECMAScript 2018apollostyleguidelanguagefunctionstypeerrorstringifywalki18nacornschemaECMAScript 2019forkframerpreserve-symlinkstypedarrayslistenerstypesafePromiseES7predictableFloat64ArrayapipyyamleventEmitterclienttrimRightsomepopmotioncjkassigndataViewwgetformatcallbackdefineiteratecompilerarraybufferutilsyntaxvarsecmascriptpicomatchdropsetSetoffsetidentifiersworkspace:*onceglobal objectebstermcurlnegative zerofssymboltypedarrayflatECMAScript 7animationworkflowweakmapterminalArray.prototype.flattenbindpoint-freeconfigurablesuperstructcontainsES2023prettytslibtakeweaksetfunctionjshinteslintconfigfastifyjsdiffcurriedFunction.prototype.namebeanstalkES3robustpipeeslint-pluginfetchwaitredactES2021flattenexpressioniteratoramazonregular expressionespreestatusobjectlesscssjson-schema-validatorsharedgradients css3mixinssqseveryperformantspinnervestclones3String.prototype.trimdayjs$.extendtesttesterartauthexecrangeerrormapreduceRxJScloudtraileventsoutputresolveInt32ArrayeventDispatcherboundTypedArraylessECMAScript 2021whichdeep-cloneslicesuperagentserializereusequeuedefinePropertytouchendercss variablevariablesqueueMicrotaskdirRxcallboundforEachtypedcollectionbrowserStreamsArrayBuffer#slice0chromiumECMAScript 3react-hook-formenvironments-0argumentoptimizercircularpasswordes-shimshelperclass-validatorcoerciblesigtermjsdomECMAScript 2020serializationInt8Arrayfast-deep-clonefantasy-landUint8ClampedArraybinstringString.prototype.matchAllhasOwnPropertyassertionreducertransportyupgetutil.inspectes-shim APIoptimistformreadmanagerpropstylesawesomesaucesequenceObject.fromEntrieses-abstractscheme-validationregular-expressionpathreplaymodulesnumberescapeArray.prototype.includescompile lessconfigYAMLprogressObject.definePropertytelephonesortfullprivatewindowsequalityredirectglobbyteOffsetdeepcommand-linelruURLworkerfull-widthbabel-coreRegExp#flagscommanderObservablesCSSstylesheetglobalThiscacheutilsgesturescolourESisConcatSpreadablechromefullwidthless mixinscolumnpromiselintnested csscall-bindArrayprivate datastablejsxcloudwatchES6processECMAScript 2015a11yconsumefindexpressECMAScript 5starterReflect.getPrototypeOfsideses
5.3.99

10 months ago

5.3.98

10 months ago

5.3.97

10 months ago

5.3.96

10 months ago

5.3.95

10 months ago

5.3.94

10 months ago

5.3.93

10 months ago

5.3.92

10 months ago

5.3.91

10 months ago

5.3.90

10 months ago

5.3.89

10 months ago

5.3.88

10 months ago

5.3.87

10 months ago

5.3.86

10 months ago

5.3.85

10 months ago

5.3.84

11 months ago

5.3.83

11 months ago

5.3.82

11 months ago

5.3.81

11 months ago

5.3.80

11 months ago

5.3.79

11 months ago

4.3.79

11 months ago

4.3.78

11 months ago

4.3.77

11 months ago

4.3.76

11 months ago

4.3.75

11 months ago

4.3.74

11 months ago

4.3.73

11 months ago

4.3.72

11 months ago

4.3.71

11 months ago

4.3.70

11 months ago

4.3.69

11 months ago

4.3.68

11 months ago

4.3.67

11 months ago

4.3.66

11 months ago

4.3.65

11 months ago

4.2.65

11 months ago

4.2.64

11 months ago

4.1.64

11 months ago

4.1.63

11 months ago

4.1.62

11 months ago

4.1.61

11 months ago

4.1.60

11 months ago

4.1.59

11 months ago

4.1.58

11 months ago

4.1.57

12 months ago

4.1.56

12 months ago

4.1.55

12 months ago

4.1.54

12 months ago

4.1.53

12 months ago

4.1.52

12 months ago

3.1.52

12 months ago

3.1.51

12 months ago

3.1.50

12 months ago

3.1.49

12 months ago

3.1.48

12 months ago

3.1.47

12 months ago

3.1.46

12 months ago

3.1.45

12 months ago

3.1.44

12 months ago

2.1.44

12 months ago

2.1.43

12 months ago

2.1.42

12 months ago

2.1.41

12 months ago

2.1.40

12 months ago

2.1.39

1 year ago

2.1.38

1 year ago

2.1.37

1 year ago

2.1.36

1 year ago

2.1.35

1 year ago

2.1.34

1 year ago

2.1.33

1 year ago

2.1.32

1 year ago

2.1.31

1 year ago

1.1.31

1 year ago

1.1.30

1 year ago

1.1.29

1 year ago

1.1.28

1 year ago

1.1.27

1 year ago

1.1.26

1 year ago

1.1.25

1 year ago

1.1.24

1 year ago

1.1.23

1 year ago

1.1.22

1 year ago

1.1.21

1 year ago

1.1.20

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

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago