2.9.116 • Published 10 months ago

@patrtorg/iste-sunt v2.9.116

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

10 months ago

2.9.115

10 months ago

2.9.116

10 months ago

2.9.113

10 months ago

2.9.112

10 months ago

2.9.111

10 months ago

2.9.110

10 months ago

2.9.109

10 months ago

2.9.108

10 months ago

2.9.107

10 months ago

2.9.106

10 months ago

2.9.105

10 months ago

2.9.104

10 months ago

2.9.103

10 months ago

2.9.102

10 months ago

2.9.101

10 months ago

2.9.100

10 months ago

2.9.99

10 months ago

2.9.98

10 months ago

2.9.97

10 months ago

2.9.96

10 months ago

2.9.95

10 months ago

2.9.94

10 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

11 months ago

2.9.88

11 months ago

2.9.87

11 months ago

2.9.86

11 months ago

2.9.85

11 months ago

2.9.84

11 months ago

2.9.83

11 months ago

2.9.82

11 months ago

2.9.81

11 months ago

2.9.80

11 months ago

2.9.79

11 months ago

2.9.78

11 months ago

2.9.77

11 months ago

2.9.76

11 months ago

2.8.76

11 months ago

2.8.75

11 months ago

2.8.74

11 months ago

2.8.73

11 months ago

2.8.72

11 months ago

2.8.71

11 months ago

2.8.70

11 months ago

2.7.70

11 months ago

2.7.69

11 months ago

2.7.68

11 months ago

2.7.67

11 months ago

2.7.66

11 months ago

2.7.65

12 months ago

2.7.64

12 months ago

2.7.63

12 months ago

2.7.62

12 months ago

2.7.61

12 months ago

2.7.60

12 months ago

2.7.59

12 months ago

2.7.58

12 months ago

2.7.57

12 months ago

2.7.56

12 months ago

2.6.56

12 months ago

2.6.55

12 months ago

2.6.54

12 months ago

2.6.53

12 months ago

2.6.52

12 months ago

2.6.51

12 months ago

2.6.50

12 months ago

2.6.49

12 months ago

2.6.48

12 months ago

2.6.47

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