6.12.110 • Published 11 months ago

@erboladaiorg/distinctio-illum-harum v6.12.110

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

@erboladaiorg/distinctio-illum-harum Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Which kind of Typed Array is this JavaScript value? Works cross-realm, without instanceof, and despite Symbol.toStringTag.

Example

var whichTypedArray = require('@erboladaiorg/distinctio-illum-harum');
var assert = require('assert');

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

assert.equal('Int8Array', whichTypedArray(new Int8Array()));
assert.equal('Uint8Array', whichTypedArray(new Uint8Array()));
assert.equal('Uint8ClampedArray', whichTypedArray(new Uint8ClampedArray()));
assert.equal('Int16Array', whichTypedArray(new Int16Array()));
assert.equal('Uint16Array', whichTypedArray(new Uint16Array()));
assert.equal('Int32Array', whichTypedArray(new Int32Array()));
assert.equal('Uint32Array', whichTypedArray(new Uint32Array()));
assert.equal('Float32Array', whichTypedArray(new Float32Array()));
assert.equal('Float64Array', whichTypedArray(new Float64Array()));
assert.equal('BigInt64Array', whichTypedArray(new BigInt64Array()));
assert.equal('BigUint64Array', whichTypedArray(new BigUint64Array()));

Tests

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

japanesebluebirddependenciesES2015numberdeepcloneMaprangeerrordeterministicappweaksetroutingtrimentrieslintPromisedeepES2019colorreal-timeobjSymbolstoragegatewayhttpassigntelephonewidthdeleteescapeairbnbconsoletraversebatchprunewalknativefiletypanionWeakMapreusecryptorecursiveeditorfile systemes7look-upshrinkwrapargumentsfull-widthqueueMicrotaskoffsetspawnconsumejQueryreact-hook-formbuffersBigInt64Arrayebsclass-validatorscheme-validationcacheutil.inspectiteratores6collection.es6dom-testing-librarySetflagES8coveragehookstextassertlazytypeofcloneloadingredactjsdomECMAScript 2020commanderawaitkarmaines-shim APIcmdcloudwatchregular expressionsformattinggenerics256zeroschemaicuArray.prototype.filtertypedESopenervaluejson cacheparseawsratelimitsetPrototypeOfxdginputreadableapollomulti-packagefindLastIndexoutputurlgroupBysequenceposesidemkdirstyperequirestyled-componentsextrarouteFloat64Arraytyped arrayfunctionES5CSSreducerchaistablehashlengthes-shimsfind-upiamtaptoolsoptimistcontainscensorreact-hooksmonorepochannelReactiveXopenredux-toolkitECMAScript 2018emojiefficientUint16ArrayruntimeUint8ClampedArrayqsloghookformpipe-0termeslint-pluginerrores-abstractenvironmentsWeakSetes2016ES7autoprefixerlruInt32ArrayquerystringconfigurableeventstoSortedstringifysearchmergelaunchgesturesindicatorequalitytrimStartstylingconcatautoscalingpicomatch@@toStringTagargvstringifiervisualfast-cloneobjectbeanstalkspinnersgettersettingsestreeexecutablesimple cacheArray.prototype.contains_.extendfsdynamodb3ds3istanbulfastformatserializeragentenderflatMapdatadependency managerprivatewordwraplookReactiveExtensionsmobilees2015regexpkey valuephonearrayschromiumcall-bindgetvariablesthreehasOwnsortbrowserslistconcatMapmimechromestyleamazonprotobufInt16ArrayuuidfetchtostringtagreadablestreamhasOwnPropertySymbol.toStringTagemrpyyamlcheckidentifiersRegExp.prototype.flagslockfileutilyamlidlesesterminaltakegraphqljsones2017byteLengthponyfillES2021settergetintrinsicarraybuffersuperstructrfc4122Objectstart0ES2018breakrobustjavascriptpositivejsdiffObject.getPrototypeOfmatchesObject.keysArray.prototype.flattenmetadatajsonpathparentsform-validationfastcopyttypreserve-symlinkswritableshellreact poseexepackage.jsonmkdirrandomcloudformationajvfast-deep-copyinstrumentationxhrmapreducekeyinferenceemitdebuggerpropertyRxinvariantlanguagefigletes5namespopmotioncomparedefaultObservablesclientcallbindstringESnexttoolkitkeysmoveworkspace:*ec2progressvestspeedartReflect.getPrototypeOfECMAScript 2015promisesArrayBufferextendasyncformenvexpressionloadbalancingdefineES2017negative zeroworkflowrequestcall-boundpackagesECMAScript 2016Array.prototype.flatRxJSduplexintrinsicargspromisejsredirectanimation$.extendWebSocketsstylesproppushperformancetdddeep-clonesimpledbavaworkersyntaxerrorkey parparserelectronrgbdragcodescharacterloggingInt8ArrayObject.fromEntrieslimitedtslibwaapitestingcompilerbindwarningCSSStyleDeclarationtrimRightinspectfolderspinnerArrayFunction.prototype.nameArrayBuffer.prototype.slicevpcextensionrm -frcoercibleecmascriptenvironmentdirectoryRegExp#flagstaskbusycolumntc39specgetOwnPropertyDescriptorconvertratedefinePropertyhasutilitiesschemefunction.lengthmochawhatwges8deepcopyiterationECMAScript 2021openscjkreact animationstatelessupcharsetvalueslinkcloudsearchfunctionalurlssyntaxwrapaccessoreventEmittertypedarraybddtoArrayMicrosoftapieventDispatcherbannerimmutablewgettimeutilityassertscallboundproxyflatfile cachestyleguidefindupxtermgetPrototypeOfunicodequeryspringjestECMAScript 5ownUint8ArraydateArray.prototype.findLastlinewrapieArray.prototype.flatMapcssbundlerzodpluginwafUnderscorethrottlekinesisnopecommand-lineyuplistenersio-tssameValueZeroregexregular expressionTypeScriptdescriptorsfastifytrimLeftfunctionsequalpathpackage managerString.prototype.trimglobalawesomesaucetesterespree__proto__performantpersistenthigher-orderansivalidationelbfastclonedirStreamsfromglobalspostcss-pluginlasttssortedexpressObject.valuessqsimportexportvalidatea11ytoStringTagserializedomsafewebsitetypedarraysfast-deep-cloneeslintArray.prototype.findLastIndexES2020eslintplugintypesStreamtouchlocationYAMLcircularhelpers.envtypesafemkdirpbundlingtypeerrorguidfindbrowserlistcallhas-ownjshintgetoptendpointsymbolcomputed-typesECMAScript 3columnsloggereast-asian-widthassertioncommandmapmodulesetcolorsflagsstructuredClonecode pointsrmdirglobresolveslotjsxchildstarterHyBinpmrapidcollectionfindLastcharactersidomitstdlibimportprocessbufferWebSocketmruminimalelasticachepnpm9viewtrimEndoptionreaditeratecoreIteratordescriptionrm -rfsharedmake dirECMAScript 2023byteOffsetjoiArray.prototype.includestoobjectFloat32ArrayJSON-Schemaremovel10nprefixdotenvUint32ArrayesweakmapmatchmodulesObservablees2018queueArrayBuffer#slicepackageURLSearchParamsfullAsyncIteratorvalidPushpolyfill
@dramaorg/esse-praesentium-eligendi@dramaorg/quae-dolore-nostrum@erboladaiorg/ad-exercitationem-ducimus@erboladaiorg/adipisci-repellendus-corporis@erboladaiorg/asperiores-earum-quaerat@erboladaiorg/asperiores-fuga-sint@erboladaiorg/asperiores-nam-adipisci@erboladaiorg/autem-dolores-ipsam@erboladaiorg/cum-commodi-consequatur@erboladaiorg/cupiditate-consectetur-porro@erboladaiorg/cupiditate-pariatur-optio@erboladaiorg/distinctio-tempora-quis@erboladaiorg/error-atque-ea@erboladaiorg/esse-ipsa-numquam@erboladaiorg/ex-hic-molestias@erboladaiorg/explicabo-eius-adipisci@erboladaiorg/fugiat-nobis-repellendus@erboladaiorg/laboriosam-inventore-natus@erboladaiorg/molestiae-voluptatibus-perferendis@erboladaiorg/molestias-nulla-dolor@erboladaiorg/nisi-culpa-cum@erboladaiorg/officia-illum-aperiam@erboladaiorg/perspiciatis-magni-ut@erboladaiorg/quae-in-veniam@erboladaiorg/quaerat-mollitia-adipisci@erboladaiorg/quibusdam-itaque-tempora@erboladaiorg/quod-explicabo-neque@erboladaiorg/sint-deleniti-dolorem@erboladaiorg/sit-nesciunt-amet@erboladaiorg/tenetur-architecto-dolore@erboladaiorg/ut-dignissimos-laborum@erboladaiorg/velit-fugit-harum@juigorg/nisi-molestiae-ut@juigorg/sit-nam-neque@kollorg/dicta-itaque-nemo@kollorg/nihil-veniam-deserunt@swenkerorg/modi-dolorum-provident@swenkerorg/nulla-voluptates-voluptates@zitterorg/aspernatur-pariatur-occaecati@zitterorg/eum-veritatis-placeat@zitterorg/illum-perferendis-consecteturanalsorhost-simple-bscorcojs-qrcodecorcojs-qrcode-logodable-effectfiran-loggingsimple-assi-animationsimple-prompts-web3
4.10.89

12 months ago

3.8.87

1 year ago

3.8.88

1 year ago

2.3.28

1 year ago

2.3.27

1 year ago

2.5.47

1 year ago

2.3.24

1 year ago

2.5.48

1 year ago

2.3.23

1 year ago

2.5.49

1 year ago

2.3.26

1 year ago

2.3.25

1 year ago

5.12.99

12 months ago

3.8.85

1 year ago

2.5.43

1 year ago

2.3.20

1 year ago

3.8.86

1 year ago

2.5.44

1 year ago

2.5.45

1 year ago

2.3.22

1 year ago

2.5.46

1 year ago

2.3.21

1 year ago

5.12.95

12 months ago

5.12.96

12 months ago

2.7.69

1 year ago

5.12.97

12 months ago

5.12.98

12 months ago

2.5.42

1 year ago

2.7.73

1 year ago

2.7.72

1 year ago

2.7.71

1 year ago

2.7.70

1 year ago

2.5.58

1 year ago

2.5.59

1 year ago

2.7.77

1 year ago

2.5.54

1 year ago

2.7.76

1 year ago

2.5.55

1 year ago

2.7.75

1 year ago

2.5.56

1 year ago

2.7.74

1 year ago

2.5.57

1 year ago

2.5.50

1 year ago

2.5.51

1 year ago

2.7.79

1 year ago

2.5.52

1 year ago

2.7.78

1 year ago

2.5.53

1 year ago

5.10.90

12 months ago

2.7.80

1 year ago

5.10.92

12 months ago

5.10.91

12 months ago

2.5.60

1 year ago

2.7.84

1 year ago

2.7.83

1 year ago

2.7.82

1 year ago

2.7.81

1 year ago

5.10.94

12 months ago

5.10.93

12 months ago

5.10.95

12 months ago

3.10.88

12 months ago

3.10.89

12 months ago

2.4.29

1 year ago

2.4.28

1 year ago

2.4.39

1 year ago

2.2.15

1 year ago

2.4.36

1 year ago

2.2.13

1 year ago

2.4.35

1 year ago

2.2.14

1 year ago

2.4.38

1 year ago

2.2.11

1 year ago

2.4.37

1 year ago

2.2.12

1 year ago

2.4.32

1 year ago

2.4.31

1 year ago

2.4.34

1 year ago

2.4.33

1 year ago

2.4.30

1 year ago

2.6.60

1 year ago

2.6.61

1 year ago

3.7.84

1 year ago

2.6.66

1 year ago

3.7.85

1 year ago

2.6.67

1 year ago

2.4.42

1 year ago

2.6.68

1 year ago

2.6.69

1 year ago

5.11.95

12 months ago

2.6.62

1 year ago

2.6.63

1 year ago

2.6.64

1 year ago

2.4.41

1 year ago

2.6.65

1 year ago

2.4.40

1 year ago

6.12.108

11 months ago

6.12.109

11 months ago

6.12.106

11 months ago

6.12.107

11 months ago

6.12.104

11 months ago

6.12.105

11 months ago

6.12.110

11 months ago

3.9.88

12 months ago

6.12.102

11 months ago

2.3.17

1 year ago

6.12.103

11 months ago

5.12.101

12 months ago

2.3.16

1 year ago

5.12.100

12 months ago

2.3.19

1 year ago

6.12.101

12 months ago

2.3.18

1 year ago

2.3.15

1 year ago

4.10.90

12 months ago

2.2.10

1 year ago

2.2.9

1 year ago

2.2.8

1 year ago

2.2.7

1 year ago

2.2.6

1 year ago

2.2.5

1 year ago

2.2.4

1 year ago

2.2.3

1 year ago

1.2.3

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago