2.9.116 • Published 12 months ago

@patrtorg/iste-sunt v2.9.116

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

@patrtorg/iste-sunt Version Badge

github actions coverage License Downloads

npm badge

Is this value a JS Map? This module works cross-realm/iframe, and despite ES6 @@toStringTag.

Example

var isMap = require('@patrtorg/iste-sunt');
assert(!isMap(function () {}));
assert(!isMap(null));
assert(!isMap(function* () { yield 42; return Infinity; });
assert(!isMap(Symbol('foo')));
assert(!isMap(1n));
assert(!isMap(Object(1n)));

assert(!isMap(new Set()));
assert(!isMap(new WeakSet()));
assert(!isMap(new WeakMap()));

assert(isMap(new Map()));

class MyMap extends Map {}
assert(isMap(new MyMap()));

Tests

Simply clone the repo, npm install, and run npm test

TypeScripta11ycopyrgbcallspinnersposefunction.lengthstringifyES2022enderfastcopyphonestylesbytetraversecurlupzxhasvalueinstallprivateguidshellownsubprocessvalues_.extendtestingmobilecallbindbyteLengthlookTypeBoxcomparesharedtouchendpointflaglocalmocharegular expressionsec2validgetOwnPropertyDescriptorhtmlnodejsspeceffect-tswaapigetterArray.prototype.findLastIndexes2018byteOffsetmruimmerserializationRxJSWeakSetunicodePromiseinstallersesfpsReflect.getPrototypeOfartwebexpressUnderscoreArrayBufferString.prototype.matchAllworkspace:*globalsrecursiveoffsetglobMicrosoftprocessjavascriptdomfslinthandlerObject.getPrototypeOfprotocol-buffersponyfillespreeparentcacheresolvecommand-linemulti-packagetoStringTaggitignoreconstlocationarraybufferobjfixed-widthpreprocessoranimationYAMLdeterministicStyleSheetminimalstructuredCloneieenumerableroute53awesomesaucecallbacktypedarrayweaksetacornprophasOwnPropertyjQuerymovees8setlastbufferselasticacheglobalserializedragfindupinstrumentationweakmappackage.jsonconfigjestoptimizerHyBil10nES2015httpsagentcloudfrontletprotobufgetintrinsicchinesepackagechromevestchannelpackage managerES2021typesafeserverbrowserslistfast-deep-copyjson-schemaimmutableworkflowgenericsnodeflatMapspawnvarsflagsregularinECMAScript 2016namesrequireserializerformatrestfulRegExp#flagsECMAScript 2022cjkes2015groupcolumnsswfharmonyWeakMapmatchesbindbusyregular expressioninspecttacitdatapostcssentriesredacttoobjectreact-testing-librarydebugecmascriptoptioncomputed-typesshrinkwrapES5ES8functionsjsonschemaautoscalingarraysrapidpinoES3fromtesterUint8Arraycode pointsforEachECMAScript 2015arktypeArrayBuffer.prototype.slicetextfigletbrowserlistremoveESaccessorparsedirectorytoSortedi18nmkdirregeximporttrimStartreact animationSymbol.toStringTagcall-boundfunctionthreefindLastIndexvarreducerInt16Arrayassertiontypedfolderwgetcliramdarouter[[Prototype]]fileclientlook-uperrortypanionstylesearchES2016descriptorroutingtransportcolornegative zerofastifyasyncStreamsmoduleiamflattennpmignoregetredirectcollection.es6tddSetcommanderjson-schema-validationclassnamesdefinePropertytestrangeerrorvalidatecontainssuperagentutillockfileemrregexpsettermergeback-endreversedObject.entriesRxWebSocketinferencefulltypescriptiterateES2020es2016argvwalkObject.definePropertys3elbgroupByconsumeidlenpmpatchnativeloadingeventEmitterhigher-ordersource mapnameObject.issimpledbshebangjoiio-tsrequestfpdebuggerUint32ArrayeslintconfigclassesfastgesturesextendtransformSymbollibphonenumberpopmotionprettytimeframeworkhashdataViewsymlinkseast-asian-widthxhremojimonorepoECMAScript 2021storagegatewayatomObject.valuesrdsdependenciesfast-deep-clonecurriedmkdirsstylingbrowsercorekeywhichappautoprefixersharedarraybufferstyled-componentsMapstringifierschemecallboundgdprkarmapolyfillmockpromiseInt32ArrayassignES2018feedmanagercircularassertbintypessortedES2019intrinsicObservablecoerciblequoteinternal slotredux-toolkitjson__proto__.gitignoreObservablescreatecoloursinatraread0ttyvalidationyupreducecharactercloudtrailform-validationjsdiffterminaldatecolorsparserquerystringpnpm9util.inspecthooksmkdirp.envcharactersCSSdynamodbdataviewrmdirtelephoneairbnbbound256babel-coreimportexportreuselruwritablereadablestreamajv3dArray.prototype.flattenexecutehasOwnpathfilterexecpluginreworkidentifiersECMAScript 2017assertsmapcore-jsstablerm -frjsdeep-copyCSSStyleDeclarationeventDispatcherformattinges2017real-timedeepequalityRegExp.prototype.flagsES6metadataprotopurepicomatchzodreact-hook-formECMAScript 7streamselectronURLiteratorparentsesprivate datadeepclonees6bddUint8ClampedArraybufferwarningfront-endTypedArraysortpositiveArray.prototype.includestoolkitbinaryclass-validatordayjstoArraywritesymbolssetImmediatelinkuuiddeletees-shim APImomentenvquerylanguagemockingapisnsnumbermatchxtermES7includesuninstallstyleguidedependency managercss-in-jsmakeargumentcollectiontypepushyamlWebSocketsroutepoint-freecryptopostcss-plugininternalequalArray.prototype.flatMapjapaneseamazonkinesiswalkingbabelRFC-6455ECMAScript 2023find-upsettingseveryinvariantvalidatorsometrimawsfullwidthtermoutputconfigurableJSONchilddirarrayString.prototype.trimfetchnopevariableses-shimshttplogformexecfileobjectruntimeestreeebsdeepcopycolumnexpressionjsxconsolevisualutilsforkIteratormatchAlleslintES2017full-widthdropcloudformationperformancecall-bindURLSearchParamspropertiesArray.prototype.filtercensorlengthhelperbundlingchromiumvpcArrayasterisksschemaECMAScript 3shamFunction.prototype.nametrimLeftreact-hookshookformstarterspringBigUint64Arrayes-abstractasciiflatutilityjasmineregular-expressionansifindcoverageclonepackagesperformantinputObject.fromEntriesECMAScript 2018accessibilityonce@@toStringTagtranspilerworkertsbannerFloat32Arrayscheme-validation-0sameValueZeroclassnametc39rulesnegativecloudsearchReactiveXeslint-pluginreactcheckconcatMapECMAScript 6user-streamstrimEndajaxdom-testing-libraryisConcatSpreadableidjson-schema-validatorObject.assigntrimRightastjshintrfc4122toolsemitqueueefficientpipereduxomitescapetslibformskeysfunctionalurlreadablebeanstalkenvironmentcsspyyamlrandomutilitiessetPrototypeOfECMAScript 2020stringFloat64ArrayzerosuperstructES2023getoptrm -rfdescriptorsrsssyntaxerrorwafArray.prototype.findLastdeep-clonerobustwhatwgqueueMicrotaskfast-cloneshimjsdomdefineReactiveExtensionsArray.prototype.containsargsECMAScript 5binarieskoreanfile systemextrasafeloggerspinnertaketoReversedtranspilefindLastreverseqsmanipulationloadbalancingspeedbundlerslicefnmatchistanbulfastcloneloggingJSON-Schemacompilertyped arraydotenvcommandoptimistESnextInt8ArrayprefixArrayBuffer#slicehardlinksavaxmles5ObjectAsyncIteratortapgetPrototypeOfstreamcloudwatchapollochaipropertyfast-copylistenersviewsideproxysyntaxframerdescriptiontypeerrorECMAScript 2019pruneslotindicator6to5fantasy-landPushmapreducerestenvironmentsserviceeventsrmprogresssymbolmoduleshas-owngraphqleslintpluginconcates7diff
2.9.114

12 months ago

2.9.115

12 months ago

2.9.116

12 months ago

2.9.113

12 months ago

2.9.112

12 months ago

2.9.111

12 months ago

2.9.110

12 months ago

2.9.109

1 year ago

2.9.108

1 year ago

2.9.107

1 year ago

2.9.106

1 year ago

2.9.105

1 year ago

2.9.104

1 year ago

2.9.103

1 year ago

2.9.102

1 year ago

2.9.101

1 year ago

2.9.100

1 year ago

2.9.99

1 year ago

2.9.98

1 year ago

2.9.97

1 year ago

2.9.96

1 year ago

2.9.95

1 year ago

2.9.94

1 year ago

2.9.93

1 year ago

2.9.92

1 year ago

2.9.91

1 year ago

2.9.90

1 year ago

2.9.89

1 year ago

2.9.88

1 year ago

2.9.87

1 year ago

2.9.86

1 year ago

2.9.85

1 year ago

2.9.84

1 year ago

2.9.83

1 year ago

2.9.82

1 year ago

2.9.81

1 year ago

2.9.80

1 year ago

2.9.79

1 year ago

2.9.78

1 year ago

2.9.77

1 year ago

2.9.76

1 year ago

2.8.76

1 year ago

2.8.75

1 year ago

2.8.74

1 year ago

2.8.73

1 year ago

2.8.72

1 year ago

2.8.71

1 year ago

2.8.70

1 year ago

2.7.70

1 year ago

2.7.69

1 year ago

2.7.68

1 year ago

2.7.67

1 year ago

2.7.66

1 year ago

2.7.65

1 year ago

2.7.64

1 year ago

2.7.63

1 year ago

2.7.62

1 year ago

2.7.61

1 year ago

2.7.60

1 year ago

2.7.59

1 year ago

2.7.58

1 year ago

2.7.57

1 year ago

2.7.56

1 year ago

2.6.56

1 year ago

2.6.55

1 year ago

2.6.54

1 year ago

2.6.53

1 year ago

2.6.52

1 year ago

2.6.51

1 year ago

2.6.50

1 year ago

2.6.49

1 year ago

2.6.48

1 year ago

2.6.47

1 year ago

2.6.46

1 year ago

2.6.45

1 year ago

2.6.44

1 year ago

2.6.43

1 year ago

2.6.42

1 year ago

2.6.41

1 year ago

2.5.41

1 year ago

2.5.40

1 year ago

2.5.39

1 year ago

2.4.39

1 year ago

2.3.39

1 year ago

2.3.38

1 year ago

2.3.37

1 year ago

2.3.36

1 year ago

2.3.35

1 year ago

2.3.34

1 year ago

2.3.33

1 year ago

2.3.32

1 year ago

2.3.31

1 year ago

2.3.30

1 year ago

2.3.29

1 year ago

2.3.28

1 year ago

2.3.27

1 year ago

2.3.26

1 year ago

2.3.25

1 year ago

2.3.24

1 year ago

2.3.23

1 year ago

2.3.22

1 year ago

2.3.21

1 year ago

2.3.20

1 year ago

2.3.19

1 year ago

2.3.18

1 year ago

2.3.17

1 year ago

2.3.16

1 year ago

2.3.15

1 year ago

2.2.15

1 year ago

2.2.14

1 year ago

2.1.14

1 year ago

2.1.13

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

1 year ago

1.0.5

1 year ago

1.0.4

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