3.10.81 • Published 10 months ago

@erboladaiorg/deleniti-architecto-architecto v3.10.81

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

10 months ago

3.10.80

10 months ago

3.10.79

10 months ago

3.10.78

10 months ago

3.10.77

10 months ago

3.10.76

11 months ago

3.9.76

11 months ago

3.9.75

11 months ago

3.9.74

11 months ago

3.9.73

11 months ago

3.9.72

11 months ago

3.9.71

11 months ago

3.9.70

11 months ago

3.8.70

11 months ago

3.8.69

11 months ago

3.8.68

11 months ago

3.8.67

11 months ago

3.8.66

11 months ago

3.8.65

11 months ago

3.8.64

11 months ago

3.7.64

11 months ago

3.7.63

11 months ago

3.7.62

11 months ago

3.7.61

11 months ago

3.7.60

11 months ago

3.7.59

11 months ago

3.6.59

11 months ago

3.6.58

11 months ago

3.6.57

11 months ago

3.6.56

11 months ago

3.6.55

11 months ago

3.6.54

11 months ago

3.6.53

11 months ago

3.6.52

11 months ago

3.5.52

11 months ago

3.5.51

12 months ago

3.5.50

12 months ago

3.5.49

12 months ago

3.5.48

12 months ago

3.5.47

12 months ago

3.5.46

12 months ago

3.5.45

12 months ago

3.5.44

12 months ago

3.5.43

12 months ago

3.4.43

12 months ago

3.4.42

12 months ago

3.3.42

12 months ago

3.3.41

12 months ago

3.3.40

12 months ago

3.3.39

12 months ago

3.3.38

12 months ago

3.3.37

12 months ago

3.3.36

12 months ago

3.3.35

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