6.14.125 • Published 1 year ago

@diotoborg/libero-asperiores-at v6.14.125

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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/harum-neque@diotoborg/sapiente-nihil-sunt@diotoborg/sed-tempora-natus@diotoborg/suscipit-officia@diotoborg/temporibus-fugiat@diotoborg/veritatis-sapiente@diotoborg/tenetur-hic@diotoborg/ullam-neque-voluptates@diotoborg/similique-fugit@diotoborg/sunt-necessitatibus@diotoborg/sunt-iure@diotoborg/tempore-beatae-debitis@diotoborg/tempore-ad-veritatis@diotoborg/sequi-perspiciatis@diotoborg/soluta-amet-enim@diotoborg/suscipit-amet@diotoborg/tenetur-nobis-maiores@diotoborg/vero-ab@diotoborg/voluptas-nulla@diotoborg/sit-voluptas@diotoborg/velit-labore@diotoborg/veniam-blanditiis-sit@diotoborg/veritatis-nihil-vero@diotoborg/veritatis-nobis@diotoborg/voluptatum-quae@diotoborg/voluptatibus-impedit@diotoborg/voluptatibus-officiis@diotoborg/voluptatem-quod-magnam@diotoborg/voluptatibus-earum@diotoborg/sit-illo@diotoborg/sunt-totam@diotoborg/ab-harum@diotoborg/accusantium-reprehenderit-commodi@diotoborg/aliquid-fugit@diotoborg/adipisci-dolorum@diotoborg/amet-cum-culpa@diotoborg/ad-rerum@diotoborg/aliquid-non@diotoborg/adipisci-soluta@diotoborg/alias-amet@diotoborg/aliquam-quod-at@diotoborg/aliquam-ut@diotoborg/aperiam-amet-natus@diotoborg/aperiam-iste@diotoborg/aspernatur-in@diotoborg/aspernatur-nihil@diotoborg/asperiores-maiores-velit@diotoborg/at-exercitationem-esse@diotoborg/asperiores-similique-quasi@diotoborg/consectetur-tempora-quia@diotoborg/atque-mollitia-consequuntur@diotoborg/atque-voluptatum-maxime@diotoborg/consequatur-facilis-qui@diotoborg/asperiores-hic@diotoborg/aspernatur-eaque@diotoborg/assumenda-praesentium@diotoborg/aut-officiis@diotoborg/autem-vero@diotoborg/aperiam-cum@diotoborg/beatae-culpa@diotoborg/autem-dolor@diotoborg/beatae-possimus@diotoborg/aspernatur-id@diotoborg/at-vitae@diotoborg/aut-provident-cumque@diotoborg/consequuntur-rem@diotoborg/cumque-sequi@diotoborg/delectus-recusandae-aut@diotoborg/deserunt-cupiditate@diotoborg/dolore-sint-deserunt@diotoborg/culpa-reiciendis@diotoborg/cum-ab@diotoborg/distinctio-vel@diotoborg/distinctio-voluptates-deleniti@diotoborg/dolores-esse-incidunt@diotoborg/deleniti-cum@diotoborg/corporis-similique-commodi@diotoborg/cum-illum-cum@diotoborg/dolore-magnam-ipsam@diotoborg/corrupti-quos-quo@diotoborg/doloremque-asperiores@diotoborg/dolores-iusto@diotoborg/doloremque-tempore-harum@diotoborg/doloribus-provident@diotoborg/dolores-voluptates@diotoborg/doloribus-sapiente-voluptatum@diotoborg/enim-molestias@diotoborg/dolorum-ipsam@diotoborg/ea-sint@diotoborg/ea-praesentium@diotoborg/dolorum-iste-excepturi@diotoborg/ducimus-ducimus-sed@diotoborg/est-ad@diotoborg/eaque-iste@diotoborg/esse-rerum@diotoborg/dolorum-autem@diotoborg/earum-vero@diotoborg/enim-explicabo-saepe@diotoborg/eos-eum@diotoborg/est-unde-excepturi
6.14.125

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

2 years ago

3.4.41

2 years ago

3.4.42

2 years 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

2 years ago

3.8.83

1 year ago

3.6.60

2 years 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

2 years ago

4.13.116

1 year ago

3.6.75

1 year ago

3.0.14

2 years ago

4.13.117

1 year ago

3.6.74

1 year ago

3.0.15

2 years 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

2 years ago

4.11.113

1 year ago

3.4.26

2 years ago

4.11.110

1 year ago

3.4.27

2 years ago

4.11.111

1 year ago

3.4.28

2 years ago

3.4.29

2 years ago

3.4.20

2 years ago

3.4.21

2 years ago

3.4.22

2 years ago

3.4.23

2 years ago

3.4.24

2 years 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

2 years ago

3.4.36

2 years ago

4.11.102

1 year ago

3.6.58

2 years ago

3.4.37

2 years ago

3.6.57

2 years ago

3.4.38

2 years ago

4.11.100

1 year ago

3.6.56

2 years ago

3.4.39

2 years ago

3.8.78

1 year ago

3.6.55

2 years ago

3.2.17

2 years ago

3.8.79

1 year ago

3.6.54

2 years ago

3.6.53

2 years ago

3.6.52

2 years ago

3.4.30

2 years ago

3.4.31

2 years ago

3.4.32

2 years ago

3.4.33

2 years ago

3.4.34

2 years ago

3.10.89

1 year ago

3.4.35

2 years ago

3.6.51

2 years ago

3.6.50

2 years ago

4.11.98

1 year ago

4.11.97

1 year ago

3.7.77

1 year ago

3.1.16

2 years 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

2 years ago

3.5.50

2 years ago

5.13.118

1 year ago

3.4.18

2 years ago

3.4.19

2 years 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

2 years ago

3.3.18

2 years ago

3.5.47

2 years ago

3.5.46

2 years ago

3.5.45

2 years ago

3.5.44

2 years ago

4.10.94

1 year ago

3.5.43

2 years ago

4.10.95

1 year ago

3.5.42

2 years 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

2 years ago

3.5.48

2 years 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

2 years ago

3.0.12

2 years ago

3.0.10

2 years ago

3.0.11

2 years ago

3.0.9

2 years ago

3.0.8

2 years ago

3.0.7

2 years ago

3.0.6

2 years ago

2.0.6

2 years ago

2.0.5

2 years ago

2.0.4

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.0

2 years ago