5.3.99 • Published 1 year ago

@patrtorg/nisi-porro v5.3.99

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

1 year ago

5.3.98

1 year ago

5.3.97

1 year ago

5.3.96

1 year ago

5.3.95

1 year ago

5.3.94

1 year ago

5.3.93

1 year ago

5.3.92

1 year ago

5.3.91

1 year ago

5.3.90

1 year ago

5.3.89

1 year ago

5.3.88

1 year ago

5.3.87

1 year ago

5.3.86

1 year ago

5.3.85

1 year ago

5.3.84

1 year ago

5.3.83

1 year ago

5.3.82

1 year ago

5.3.81

1 year ago

5.3.80

1 year ago

5.3.79

1 year ago

4.3.79

1 year ago

4.3.78

1 year ago

4.3.77

1 year ago

4.3.76

1 year ago

4.3.75

1 year ago

4.3.74

1 year ago

4.3.73

1 year ago

4.3.72

1 year ago

4.3.71

1 year ago

4.3.70

1 year ago

4.3.69

1 year ago

4.3.68

1 year ago

4.3.67

1 year ago

4.3.66

1 year ago

4.3.65

1 year ago

4.2.65

1 year ago

4.2.64

1 year ago

4.1.64

1 year ago

4.1.63

1 year ago

4.1.62

1 year ago

4.1.61

1 year ago

4.1.60

1 year ago

4.1.59

1 year ago

4.1.58

1 year ago

4.1.57

1 year ago

4.1.56

1 year ago

4.1.55

1 year ago

4.1.54

1 year ago

4.1.53

1 year ago

4.1.52

1 year ago

3.1.52

1 year ago

3.1.51

1 year ago

3.1.50

1 year ago

3.1.49

1 year ago

3.1.48

1 year ago

3.1.47

1 year ago

3.1.46

1 year ago

3.1.45

1 year ago

3.1.44

1 year ago

2.1.44

1 year ago

2.1.43

1 year ago

2.1.42

1 year ago

2.1.41

1 year ago

2.1.40

1 year 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