6.14.125 • Published 9 months ago

@diotoborg/libero-asperiores-at v6.14.125

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

9 months ago

6.14.124

9 months ago

3.6.69

11 months ago

3.6.68

11 months ago

3.6.67

11 months ago

3.6.66

11 months ago

3.6.65

11 months ago

3.6.64

11 months ago

3.6.63

11 months ago

3.4.40

12 months ago

3.4.41

12 months ago

3.4.42

12 months ago

6.14.123

9 months ago

3.10.90

10 months ago

3.10.91

10 months ago

3.10.92

10 months ago

3.8.85

10 months ago

3.6.62

11 months ago

3.6.61

11 months ago

3.8.83

10 months ago

3.6.60

11 months ago

3.8.84

10 months ago

3.8.81

10 months ago

3.8.82

10 months ago

3.8.80

10 months ago

4.13.115

9 months ago

4.13.118

9 months ago

3.0.16

1 year ago

4.13.116

9 months ago

3.6.75

11 months ago

3.0.14

1 year ago

4.13.117

9 months ago

3.6.74

11 months ago

3.0.15

1 year ago

3.6.73

11 months ago

3.6.72

11 months ago

3.6.71

11 months ago

3.6.70

11 months ago

4.11.114

9 months ago

4.11.115

9 months ago

4.11.112

9 months ago

3.4.25

1 year ago

4.11.113

9 months ago

3.4.26

1 year ago

4.11.110

9 months ago

3.4.27

1 year ago

4.11.111

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

9 months ago

4.11.107

9 months ago

4.11.108

9 months ago

4.11.105

9 months ago

4.11.106

9 months ago

4.11.103

10 months ago

4.11.104

10 months ago

4.11.101

10 months ago

3.6.59

11 months ago

3.4.36

12 months ago

4.11.102

10 months ago

3.6.58

11 months ago

3.4.37

12 months ago

3.6.57

11 months ago

3.4.38

12 months ago

4.11.100

10 months ago

3.6.56

11 months ago

3.4.39

12 months ago

3.8.78

11 months ago

3.6.55

11 months ago

3.2.17

1 year ago

3.8.79

10 months ago

3.6.54

11 months ago

3.6.53

11 months ago

3.6.52

11 months ago

3.4.30

1 year ago

3.4.31

1 year ago

3.4.32

1 year ago

3.4.33

12 months ago

3.4.34

12 months ago

3.10.89

10 months ago

3.4.35

12 months ago

3.6.51

11 months ago

3.6.50

12 months ago

4.11.98

10 months ago

4.11.97

10 months ago

3.7.77

11 months ago

3.1.16

1 year ago

3.7.78

11 months ago

3.7.75

11 months ago

4.11.99

10 months ago

3.7.76

11 months ago

3.1.17

1 year ago

3.5.50

12 months ago

5.13.118

9 months ago

3.4.18

1 year ago

3.4.19

1 year ago

5.13.119

9 months ago

4.12.115

9 months ago

5.14.123

9 months ago

5.13.121

9 months ago

5.13.120

9 months ago

5.13.123

9 months ago

5.13.122

9 months ago

3.3.17

1 year ago

3.3.18

1 year 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

4.10.94

10 months ago

3.5.43

12 months ago

4.10.95

10 months ago

3.5.42

12 months ago

4.10.96

10 months ago

3.9.88

10 months ago

4.10.97

10 months ago

3.9.89

10 months ago

3.5.49

12 months ago

3.5.48

12 months ago

3.9.86

10 months ago

3.9.87

10 months ago

4.10.92

10 months ago

4.10.93

10 months ago

3.9.85

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