3.10.81 • Published 12 months ago

@erboladaiorg/deleniti-architecto-architecto v3.10.81

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

@erboladaiorg/deleniti-architecto-architecto Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Which kind of Collection (Map, Set, WeakMap, WeakSet) is this JavaScript value? Works cross-realm, without instanceof, and despite Symbol.toStringTag.

Example

var whichCollection = require('@erboladaiorg/deleniti-architecto-architecto');
var assert = require('assert');

assert.equal(false, whichCollection(undefined));
assert.equal(false, whichCollection(null));
assert.equal(false, whichCollection(false));
assert.equal(false, whichCollection(true));
assert.equal(false, whichCollection([]));
assert.equal(false, whichCollection({}));
assert.equal(false, whichCollection(/a/g));
assert.equal(false, whichCollection(new RegExp('a', 'g')));
assert.equal(false, whichCollection(new Date()));
assert.equal(false, whichCollection(42));
assert.equal(false, whichCollection(NaN));
assert.equal(false, whichCollection(Infinity));
assert.equal(false, whichCollection(new Number(42)));
assert.equal(false, whichCollection(42n));
assert.equal(false, whichCollection(Object(42n)));
assert.equal(false, whichCollection('foo'));
assert.equal(false, whichCollection(Object('foo')));
assert.equal(false, whichCollection(function () {}));
assert.equal(false, whichCollection(function* () {}));
assert.equal(false, whichCollection(x => x * x));
assert.equal(false, whichCollection([]));

assert.equal('Map', whichCollection(new Map()));
assert.equal('Set', whichCollection(new Set()));
assert.equal('WeakMap', whichCollection(new WeakMap()));
assert.equal('WeakSet', whichCollection(new WeakSet()));

Tests

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

ES2021browserlistESnextBigInt64Arrayzodcollection.es6posebyteOffsetredux-toolkitpreprocessorcommanderjsxfetchpnpm9lrufindLastWeakMapcompile lessdirmetadatapluginl10nprotocolumnsES2017gitignorefastAsyncIteratorReactiveExtensionstslibArray.prototype.flatvariables in csshooksinputStyleSheetreal-timecallbackdifffigletexecutesigintbddreadbootstrap cssarraycall-boundstringifierrecursivebootstrap lessiterateqsobjectArray.prototype.filterInt32ArraywhatwgisConcatSpreadablelesscsshandlersarrayscallsuperagentpersistentInt8Arraytypedarrayfast-deep-clonedataviewless mixinscompilerenvironment-0npm@@toStringTagArray.prototype.includesspeedserializeYAMLoperating-systemschematyped arrayfromrangeerrornodejsefficientformrouteFloat32ArrayloggermatchAllcurriedrequesttoStringTagidentifiersirqtypesES7fastifyutil.inspectdependency managerstylesheetpostcss-pluginJSONcollectiongenericsvisualrfc4122robusttypeerrorcircularspawnmkdirpReactiveXstylesECMAScript 2019termfunctionalgetOwnPropertyDescriptorwaithaskinesisFloat64Arraybabel-coreconfigscheme-validationinferenceletmergeless compilervalidatorenderdeep-copydayjsrdsObject.getPrototypeOfindicatorharmonyeveryregexcallbindcurl__proto__core-jsshebangcloudwatchfast-cloneaccessibilitybundlerES6ECMAScript 6reversedlistenerswarningMapIteratorsameValueZeroclass-validatorECMAScript 2022globalutilitiesproperties$.extendtoArrayfpsbinariessignedcacheshrinkwrapfunctiontraversedirectorycharacterhardlinksiamuser-streamsprogressURLSearchParamssomeargvtoolscommandserializationweaksetECMAScript 3pushFunction.prototype.nameclientlengthawesomesaucequerywhichexpressECMAScript 2017uuidreusedescriptorsansiself6to5waftouchstarterbrowserslistchromecss-in-jses-shim APIelasticachechildJSON-Schemadom-testing-libraryacorncloudtrailregular expressionprivatesetImmediatelessprefixwaapigesturesreact animationfixed-widthRegExp#flagsSetsetterqueueMicrotaskpureObservableslockfilequotekoreanboundinternal slotsyntaxmkdirschaiartpromisestreamObject.valuespolyfillsubprocesssnsdatastructuregetPrototypeOfSymbol.toStringTagio-tsroute53deleteregularpopmotionPushcryptnodetrimRightcolorsinstallertestingmruglobalsbinpyyamlES2020css lesssymbolstringifyfullisjavascriptpathtypescripthttpCSSvesttestlanguagecensores2018deepclonefindLastIndexmatchUint8ArraycliforEachkeypredictableconsumecolorbuffersquerystringcss nestingflagObjectescapecopytrimEndcolumnendpointoptimizerfunction.lengthemrfast-deep-copybusyfastclonerfc9562sharedarraybufferexpressionignoreproxyremovetypesafetypeofcomputed-typesstablehasOwnWebSocketflattenstoragegatewaygradients cssstructuredClonetype3dWebSocketsinvariantdeepcopyec2prettyextragroupByloggingimmerserializeres2017rulescolourformscloneflatMapmomentprototypevarCSSStyleDeclarationrgbvarsES8viewassertsdynamodbclassnameses6Observabletextpropreact-hooksurljestpasswordhelpersstylejsdiffoptiontrimStartswfvalidationcryptogetoptresolveminimalenumerablelazydescriptionprivate datahookformajaxSymbolmobilestring256sortnpmignoreframereslint-plugintoolkitArray.prototype.flattentddruntimenumberhelperregular-expressionaccessorstatelesspatchslicetelephonetc39simpledbxhrentriesidlevpcnegative zerosqsutilECMAScript 7readablestreamtypedarraysxtermeventDispatcherapidescriptorhigher-orderguidsharedfast-copygroupRxJSexitzxi18nfullwidtheslintpluginlognopedeepES2016autoscalingECMAScript 5syntaxerrorObject.isMicrosoftObject.assignconstloadbalancinggradients css3sidefile systemreducercomparedatewritereversemodulesjsUint8ClampedArraytesterArrayBuffer#slicejsdomhotweakmapfnmatchECMAScript 2020yamlgetterwalkcreatereact-componentBigUint64Arrayponyfilljson-schema-validatorprocessiteratormanagerargumentreactiepropertyelmArray.prototype.flatMapgraphqlclassnameeventEmitterecmascripttoobjectmakelinkpipees-abstractunicodesequenceenvkeysemitjwtSystem.globalassignutilsArray.prototype.findLastIndexcssairbnboncecoreinspectimportslotjson-schema-validationpackage managerStreamsinstallpackage.jsonyupES2023definePropertyHyBispinnerless.jsconsoleintrinsicECMAScriptgetautoprefixerchromiumUint32ArraychannelnegativerequiremoduletoSortedjshintES2015ECMAScript 2016tsfantasy-landURLsetcloudformationjson-schema[[Prototype]]0signalsomitObject.keyswindowsRegExp.prototype.flagsmatchesimmutablebyteLengthReflect.getPrototypeOflibphonenumberflatqueueArrayBuffercallboundstateArrayBuffer.prototype.slicezeroarktypeenvironmentsdomtacitcontainstranspilepostcssES2019uploades2016optimistpicomatchreact poseECMAScript 2018TypeScriptconfigurablestyleguideES2018certificatesmkdirRFC-6455ECMAScript 2023cloudsearchthreeoutputeslintconfigrandomjQueryStreamcheck.envfilterequalitysuperstructString.prototype.matchAllbundling.gitignoreObject.fromEntriesasterisksregexpperformanceECMAScript 2015ECMAScript 2021uninstallextendWeakSetbabelauthenticationperformantfunctionswritablemovebindsess3String.prototype.trimes2015sigtermlinuxes-shimserror-handlingArray.prototype.containsoffsetObject.definePropertyloadingcall-bindencryptiondropopensslassertiterationlintjsonshimwidtheventsdataViewasyncworkspace:*lastasciieffect-tsreact-testing-libraryhashphone_.extendsettingsbytesafechineseES2022cloudfronttoReversedjoi
3.10.81

12 months ago

3.10.80

12 months ago

3.10.79

12 months ago

3.10.78

12 months ago

3.10.77

12 months ago

3.10.76

1 year ago

3.9.76

1 year ago

3.9.75

1 year ago

3.9.74

1 year ago

3.9.73

1 year ago

3.9.72

1 year ago

3.9.71

1 year ago

3.9.70

1 year ago

3.8.70

1 year ago

3.8.69

1 year ago

3.8.68

1 year ago

3.8.67

1 year ago

3.8.66

1 year ago

3.8.65

1 year ago

3.8.64

1 year ago

3.7.64

1 year ago

3.7.63

1 year ago

3.7.62

1 year ago

3.7.61

1 year ago

3.7.60

1 year ago

3.7.59

1 year ago

3.6.59

1 year ago

3.6.58

1 year ago

3.6.57

1 year ago

3.6.56

1 year ago

3.6.55

1 year ago

3.6.54

1 year ago

3.6.53

1 year ago

3.6.52

1 year ago

3.5.52

1 year ago

3.5.51

1 year ago

3.5.50

1 year ago

3.5.49

1 year ago

3.5.48

1 year ago

3.5.47

1 year ago

3.5.46

1 year ago

3.5.45

1 year ago

3.5.44

1 year ago

3.5.43

1 year ago

3.4.43

1 year ago

3.4.42

1 year ago

3.3.42

1 year ago

3.3.41

1 year ago

3.3.40

1 year ago

3.3.39

1 year ago

3.3.38

1 year ago

3.3.37

1 year ago

3.3.36

1 year ago

3.3.35

1 year ago

3.3.34

1 year ago

3.3.33

1 year ago

3.3.32

1 year ago

3.3.31

1 year ago

3.3.30

1 year ago

3.3.29

1 year ago

3.2.29

1 year ago

3.2.28

1 year ago

3.1.28

1 year ago

3.1.27

1 year ago

3.1.26

1 year ago

3.1.25

1 year ago

3.1.24

1 year ago

3.1.23

1 year ago

3.1.22

1 year ago

3.1.21

1 year ago

3.1.20

1 year ago

3.1.19

1 year ago

3.1.18

1 year ago

3.1.17

1 year ago

3.1.16

1 year ago

3.1.15

1 year ago

3.1.14

1 year ago

3.1.13

1 year ago

3.1.12

1 year ago

3.1.11

1 year ago

3.1.10

1 year ago

3.1.9

1 year ago

3.1.8

1 year ago

3.1.7

1 year ago

3.1.6

1 year ago

3.1.5

1 year ago

3.1.4

1 year ago

3.1.3

1 year ago

2.1.3

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