2.9.116 • Published 11 months ago

@patrtorg/iste-sunt v2.9.116

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

11 months ago

2.9.115

11 months ago

2.9.116

11 months ago

2.9.113

11 months ago

2.9.112

11 months ago

2.9.111

11 months ago

2.9.110

11 months ago

2.9.109

11 months ago

2.9.108

11 months ago

2.9.107

11 months ago

2.9.106

11 months ago

2.9.105

11 months ago

2.9.104

11 months ago

2.9.103

11 months ago

2.9.102

11 months ago

2.9.101

11 months ago

2.9.100

11 months ago

2.9.99

11 months ago

2.9.98

11 months ago

2.9.97

11 months ago

2.9.96

11 months ago

2.9.95

11 months ago

2.9.94

11 months ago

2.9.93

11 months ago

2.9.92

11 months ago

2.9.91

11 months ago

2.9.90

11 months ago

2.9.89

12 months ago

2.9.88

12 months ago

2.9.87

12 months ago

2.9.86

12 months ago

2.9.85

12 months ago

2.9.84

12 months ago

2.9.83

12 months ago

2.9.82

12 months ago

2.9.81

12 months ago

2.9.80

12 months ago

2.9.79

12 months ago

2.9.78

12 months ago

2.9.77

12 months ago

2.9.76

12 months ago

2.8.76

12 months ago

2.8.75

12 months ago

2.8.74

12 months ago

2.8.73

12 months ago

2.8.72

12 months ago

2.8.71

12 months 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