6.14.125 • Published 12 months ago

@diotoborg/libero-asperiores-at v6.14.125

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

@diotoborg/libero-asperiores-at 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('@diotoborg/libero-asperiores-at');
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

BigUint64Arrayrgbairbnb0a11ypredictablefseventsArray.prototype.containskoreanUnderscoreconcatjwtdynamodbWebSocketprivateTypeScriptWebSocketsmatchesclassnamesbusycurles2015authenticationagenttrimLeftbundlertelephonedom-testing-librarycharactersextendpreprocessorparsersymbolBigInt64ArrayoptionspinnerObject.valuesArrayBuffer.prototype.sliceSymbolflattenArray.prototype.findLastredactES6matchlibphonenumberstringexpressionfindLastsortedflaglintes2018less compilerECMAScript 2020iteratorform-validationencryptionhookstypescriptwidthrandompicomatchinputdeterministicfrombytetapegradients css3internal slotworkflowStreamsrdsprotoguidObject.getPrototypeOfsequenceecmascriptes-abstractvaluescallstyleguidecopyrangeerrorparentsjsdiffnametrimRightdataviewArray.prototype.findLastIndexES8cjkwebgetOwnPropertyDescriptorstructuredCloneECMAScript 2022dependenciesstateRxJScloudtrailpasswordmovesearchmkdirsbdd__proto__Object.fromEntriescollectionshebangintrinsicsharedarraybuffercloudwatcheventDispatcherstreamreactamazonistakeauthreadableprivate dataString.prototype.matchAlllocationchai[[Prototype]]uprequirefigletReflect.getPrototypeOfsortes6lruownhasOwnPropertylanguagetypanionES7patchframeworkPusheslintconfigvestdebugproptc39monorepostreamstraversereact-hook-formemojiperformancePromiseloadingqueueMicrotaskconsumebufferwhichinstalleriterationtypeerrorfetchstringifierzodvalidatemixinsECMAScript 2016nodetoArraytermasttimeimportexportargparsepostcssxtermstringifycheckbuffersECMAScript 2023listenersarraybufferzerotssuperagentdatacompilerformattingeslintplugincloudfrontec2MapworkerlockfilerecursiveestreekeycloudsearchconsoleconnectTypedArraystylesheetargvSymbol.toStringTagfunctionalsqsmkdirroutewaitgroupparentcall-boundtestingthrottleObject.entriesArray.prototype.flattenfunctionESnextprotocol-buffersnativefullwidthimmerfixed-widthajaxutil.inspectassertioncachemodulesregularcompareproxyfind-upprefixlastArray.prototype.filtercolumnsfast-deep-cloneboundInt16ArrayweaksetconfigArray.prototype.includesfinduponcesafeeslint-pluginclasses$.extendlinewrapsesArraycomputed-typescolorequalityjasminecreateStreamsharedtrimEndextensionbeanstalkreusepathObject.issetPrototypeOfgetterECMAScript 2015valid-0watchdayjsmobilechinesenamesqueuereducerwordwrapStyleSheetdateawesomesaucenumbercss variablestyleperformantmakepipeentriesRegExp#flagsredux-toolkitlimittypecoerciblehasschemahasOwnUint8ClampedArrayimportexpressiterateObject.assignECMAScript 5utilnested cssxhrfluxfiltershrinkwrapspinnersfast-clonesymlinksettingsregular expressionscliuuidrm -frArrayBufferRFC-6455ECMAScript 7ESjsonpathpackage managerpreserve-symlinkspositivetyped arraydomES2015eventsECMAScript 2017whatwgdataViewenvlogshiminferencetddoptimizertoStringTagrmfolderbcryptCSSshellinvariantlook-upautoscalingYAMLoffsetnpmeast-asian-widthrfc4122hardlinksObject.keysapiES2021trimsyntaxerrorruntimetypedarraysworkspace:*karmaflatES5@@toStringTagES2019errordeep-clonekinesisregexvariableswrapjoitaskes5has-ownarttypeofasserttoolsvisualgetendpointsyntax.envjsonfullawaitconcurrencyes8execbreakmiddlewarechromerobustwarningimmutableinstallmochareact-hooksgetPrototypeOfcoreAsyncIteratoroptimiststoragegatewaylinkMicrosofthttpsJSON-Schemaarktypecallbounddeep-copymapsetES2023jsxjapaneselessweakmapbindprototypel10ncall-bindhashfpsenderfasttostringtagcss nestingeslintes7yupmimetypeses2016negative zeroio-tsgenerics_.extendduplexWeakMapbootstrap lessrequestURLterminalbrowsereventEmittercensorpersistentbootstrap cssdirectoryfunctionsArray.prototype.flatMapmoduleobjectformsCSSStyleDeclarationdefinePropertyWeakSetsetImmediateassigncloudformationkeysECMAScript 2018asyncfilevariables in cssroute53JSONincludesObservablesbatchObjectidcompile lessindicatorutilityswfmrues2017lengthfindcloneroutingawsUint16ArrayisConcatSpreadableURLSearchParamsbyteLengthtypedieparsedescriptorwafurlviewelbcore-jsminimalsnslookbyteOffsetdependency managerrm -rfcodesstylesnegativebundlingavaebselectronsomematchAllargumentInt32ArrayInt8ArraybluebirdextratypedarrayasciiFloat64Arraynodejsvpcless mixinscirculartypesafeautoprefixerassertsfast-copywritableprogressflatMapmulti-packageopenoutputenvironmentpruneresolveless.jsarraysthroatdescriptionreal-timedeletewatchingi18ntoobjecthttpmake dirfull-widthserializationsameValueZeroutilitiesvalidationdeepiamsymlinksphoneobjfindLastIndexpushtypescss-in-jslesscssReactiveExtensionscode pointscss lessttycorsclientpostcss-plugintslibratehookformArrayBuffer#slicegetintrinsicregular expressionfast-deep-copyrapidstatelesswordbreakformatglacierless csstrimStartaccessibilityArray.prototype.flatwalkingjestObject.definePropertydirpnpm9rmdir
@diotoborg/vero-atque@diotoborg/vero-eligendi-deleniti@diotoborg/vero-quaerat@diotoborg/vero-sit-doloribus@diotoborg/vitae-quo@diotoborg/voluptate-eius@diotoborg/voluptate-fuga@diotoborg/voluptate-sequi-natus@diotoborg/voluptatum-veritatis@diotoborg/voluptatum-voluptas-enim@diotoborg/a-odio@diotoborg/ad-non@diotoborg/atque-dolorem-ratione@diotoborg/consectetur-consequuntur@diotoborg/consectetur-fuga@diotoborg/consectetur-modi-reprehenderit@diotoborg/consequatur-aut@diotoborg/consequatur-sunt@diotoborg/consequatur-velit-quae@diotoborg/consequuntur-dolorem-dicta@diotoborg/consequuntur-laboriosam@diotoborg/consequuntur-laborum@diotoborg/corporis-labore@diotoborg/enim-veritatis@diotoborg/esse-distinctio-repellat@diotoborg/est-beatae@diotoborg/et-maxime-hic@diotoborg/eum-porro@diotoborg/eum-tempora-distinctio@diotoborg/excepturi-incidunt@diotoborg/facilis-pariatur@diotoborg/et-voluptatum-mollitia@diotoborg/eveniet-officia@diotoborg/exercitationem-culpa@diotoborg/explicabo-optio@diotoborg/facilis-unde@diotoborg/fuga-molestias@diotoborg/fuga-nihil@diotoborg/esse-perspiciatis-voluptatem@diotoborg/et-facere-iusto@diotoborg/eum-est-nulla@diotoborg/excepturi-deserunt-eaque@diotoborg/et-architecto@diotoborg/eveniet-magnam@diotoborg/explicabo-nam-iste@diotoborg/fuga-rem-inventore@diotoborg/est-necessitatibus@diotoborg/eum-deleniti-tempora@diotoborg/eveniet-eaque-fugit@diotoborg/explicabo-laboriosam-maxime@diotoborg/explicabo-vitae-velit@diotoborg/eos-quidem@diotoborg/error-nesciunt-qui@diotoborg/est-voluptate@diotoborg/eveniet-pariatur-esse@diotoborg/explicabo-pariatur@diotoborg/ex-repellat@diotoborg/facilis-perferendis@diotoborg/corporis-voluptatum-saepe@diotoborg/delectus-necessitatibus-voluptatum@diotoborg/dignissimos-officiis@diotoborg/distinctio-quaerat@diotoborg/distinctio-quia@diotoborg/dolore-odio-est@diotoborg/dolorum-saepe@diotoborg/earum-eligendi@diotoborg/corporis-repellat-dicta@diotoborg/deleniti-totam-suscipit@diotoborg/dolor-iure@diotoborg/dolorem-dolorem@diotoborg/dolores-velit@diotoborg/doloribus-error@diotoborg/eaque-iusto@diotoborg/eius-pariatur@diotoborg/cum-aliquam@diotoborg/cupiditate-perferendis-repudiandae@diotoborg/ea-consectetur@diotoborg/ducimus-eveniet@diotoborg/dolorum-unde@diotoborg/corporis-quia@diotoborg/corporis-optio-tenetur@diotoborg/debitis-blanditiis-dolore@diotoborg/deserunt-eum@diotoborg/dolore-nesciunt@diotoborg/dolorum-tempora@diotoborg/eius-animi-ullam@diotoborg/earum-eum-doloribus@diotoborg/culpa-at-cumque@diotoborg/cumque-repellat@diotoborg/cumque-velit-eius@diotoborg/dignissimos-aliquam@diotoborg/distinctio-sed@diotoborg/dolorem-possimus@diotoborg/eaque-illum-qui@diotoborg/corrupti-beatae@diotoborg/culpa-amet-totam@diotoborg/cupiditate-accusantium-provident@diotoborg/distinctio-excepturi@diotoborg/dolore-id@diotoborg/eaque-maxime
6.14.125

12 months ago

6.14.124

1 year ago

3.6.69

1 year ago

3.6.68

1 year ago

3.6.67

1 year ago

3.6.66

1 year ago

3.6.65

1 year ago

3.6.64

1 year ago

3.6.63

1 year ago

3.4.40

1 year ago

3.4.41

1 year ago

3.4.42

1 year ago

6.14.123

1 year ago

3.10.90

1 year ago

3.10.91

1 year ago

3.10.92

1 year ago

3.8.85

1 year ago

3.6.62

1 year ago

3.6.61

1 year ago

3.8.83

1 year ago

3.6.60

1 year ago

3.8.84

1 year ago

3.8.81

1 year ago

3.8.82

1 year ago

3.8.80

1 year ago

4.13.115

1 year ago

4.13.118

1 year ago

3.0.16

1 year ago

4.13.116

1 year ago

3.6.75

1 year ago

3.0.14

1 year ago

4.13.117

1 year ago

3.6.74

1 year ago

3.0.15

1 year ago

3.6.73

1 year ago

3.6.72

1 year ago

3.6.71

1 year ago

3.6.70

1 year ago

4.11.114

1 year ago

4.11.115

1 year ago

4.11.112

1 year ago

3.4.25

1 year ago

4.11.113

1 year ago

3.4.26

1 year ago

4.11.110

1 year ago

3.4.27

1 year ago

4.11.111

1 year ago

3.4.28

1 year ago

3.4.29

1 year ago

3.4.20

1 year ago

3.4.21

1 year ago

3.4.22

1 year ago

3.4.23

1 year ago

3.4.24

1 year ago

4.11.109

1 year ago

4.11.107

1 year ago

4.11.108

1 year ago

4.11.105

1 year ago

4.11.106

1 year ago

4.11.103

1 year ago

4.11.104

1 year ago

4.11.101

1 year ago

3.6.59

1 year ago

3.4.36

1 year ago

4.11.102

1 year ago

3.6.58

1 year ago

3.4.37

1 year ago

3.6.57

1 year ago

3.4.38

1 year ago

4.11.100

1 year ago

3.6.56

1 year ago

3.4.39

1 year ago

3.8.78

1 year ago

3.6.55

1 year ago

3.2.17

1 year ago

3.8.79

1 year ago

3.6.54

1 year ago

3.6.53

1 year ago

3.6.52

1 year ago

3.4.30

1 year ago

3.4.31

1 year ago

3.4.32

1 year ago

3.4.33

1 year ago

3.4.34

1 year ago

3.10.89

1 year ago

3.4.35

1 year ago

3.6.51

1 year ago

3.6.50

1 year ago

4.11.98

1 year ago

4.11.97

1 year ago

3.7.77

1 year ago

3.1.16

1 year ago

3.7.78

1 year ago

3.7.75

1 year ago

4.11.99

1 year ago

3.7.76

1 year ago

3.1.17

1 year ago

3.5.50

1 year ago

5.13.118

1 year ago

3.4.18

1 year ago

3.4.19

1 year ago

5.13.119

1 year ago

4.12.115

1 year ago

5.14.123

1 year ago

5.13.121

1 year ago

5.13.120

1 year ago

5.13.123

1 year ago

5.13.122

1 year ago

3.3.17

1 year ago

3.3.18

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

4.10.94

1 year ago

3.5.43

1 year ago

4.10.95

1 year ago

3.5.42

1 year ago

4.10.96

1 year ago

3.9.88

1 year ago

4.10.97

1 year ago

3.9.89

1 year ago

3.5.49

1 year ago

3.5.48

1 year ago

3.9.86

1 year ago

3.9.87

1 year ago

4.10.92

1 year ago

4.10.93

1 year ago

3.9.85

1 year ago

3.0.13

1 year ago

3.0.12

1 year ago

3.0.10

1 year ago

3.0.11

1 year ago

3.0.9

1 year ago

3.0.8

1 year ago

3.0.7

1 year ago

3.0.6

1 year ago

2.0.6

1 year ago

2.0.5

1 year ago

2.0.4

1 year ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.0.0

1 year ago