3.12.65 • Published 11 months ago

@dramaorg/officiis-dolore v3.12.65

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

@dramaorg/officiis-dolore 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('@dramaorg/officiis-dolore');
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

schemarapidappES2021matchcss-in-jsdotenvuser-streamscloudfrontStreamnativeEScoverageuninstallpostcssvaluesimportECMAScript 2016rm -rfelasticacheInt8ArrayhtmlnodeBigInt64ArraycollectionURLSearchParamsbufferdatefunctionalpluginstablecommandstreamqueryimmutablea11ybrowserlistparentsformattingcore-jsfunction.lengthReflect.getPrototypeOfdefinePropertypoint-freedeterministicreusefindLastparenturl6to5resolvemonoreporobustglobal objectmkdircloudtrailglacierfullboundclitypeofgettslibES6requesteslint-pluginautoscalingttysespnpm9languagewritevpccreateelectroninspectvarCSSStyleDeclarationweakmapsharedRegExp.prototype.flagsisbinariesenumerablecopyroute53JSONtsflagsutil.inspectfilesameValueZeropropassertsbddwhatwginstallbufferslockfilepreprocessorFloat64ArraybyteLengthfastifyfolderbabelsafeutilspinneransiasyncflatzerorandomdataviewes2016gesturesmulti-packagetoolkitexecfilegetOwnPropertyDescriptores2017keysflagshebangdynamodbvalidationECMAScript 2020intrinsicfastcopyloadbalancingObject.keysrdsbyteOffsetmanagerroutermatcheswaitstructuredClone[[Prototype]]letqueueMicrotaskpackageebsArray.prototype.flattentoStringTagguidespreePushinternal slotconcatfetcharraybufferES5iamignorestarterredactserializerworkerdirectoryArray.prototype.findLastIndexES2019loadingequalitycallbindpackagesqsgitignorewgettoobjectextendoutputmake dirtrimRightbusyeast-asian-widthvariableslastindicatorgraphqlposesource mapcjkgetoptdom-testing-libraryvalueArray.prototype.flatMaprfc4122viewtoArrayredirecttyped arrayprivatekeyfast-cloneregexsliceECMAScript 2021ArrayBuffer.prototype.sliceECMAScript 2017parserjapanesecolorchromeinferencecompilerArrayBufferzxcoreacornes-shimsprettymodulesexeceventDispatcherbannerwafFunction.prototype.nameassignshellECMAScript 2023TypeBoxBigUint64Arrayframerfile systemshimastrouteprototypedomairbnbcolumnssuperstructmkdirppropertystringifyformtransformString.prototype.matchAllstringdayjsgroupByassertionfast-deep-copyidentifierssyntaxreadablestreamavainternalreact-testing-librarysymbolWeakMapistanbultddwidthArrayregexpES3subprocesswritableinputcircularbeanstalkfilterconcatMaprestfultoSortedendpointunicodetextSymbolassertutilitiesRxworkspace:*xtermhttpmergeECMAScript 2015optimistcompareyamljson-schema-validationramdaarrayautoprefixermkdirslengthrecursiveinstrumentationchildyupnamewaapichromiumRxJStrimEnddescriptionjasminecloudsearchformsoptimizer.envsetPrototypeOfcall-bindonceES2022ECMAScript 2019globalThiscollection.es6ReactiveExtensionstrimLeftSetnumberpyyamlimportexport256bindtypedarrayscsskarmaprivate datafigletsnsrmdircheckconsolechannelerroruuidES8popmotionendertoReversedgetPrototypeOfESnextbrowserslistSystem.globaltimesetmochaes8weaksetemitreverseArray.prototype.findLastTypeScriptECMAScriptobjectspawnasterisksregular expressionsserializepackage managerlook-uptypesfastclonepropertiesvalidatorObservablesearchjsonnegative zerohookstouchfnmatchscheme-validationtypesafeMapregular expressionagentjsdiffrulesconfigisConcatSpreadablebundlerownArrayBuffer#slicejson-schema-validatortelephonemanipulationObject.valuescacherequirecryptofindLastIndexefficientrsssyntaxerrorvalidateWeakSetECMAScript 3ECMAScript 2022eslintpluginstoragegatewayflattenReactiveXschemefull-widthcall-boundargsphoneeslintconfigiterateloggingdropbin0ECMAScript 7settingseffect-tsmobiledeep-copypushenvironmentreversedargumentcontainsanimationclientelbtypeerrorapimetadataes2015cloneequalgetteres-shim APIprocesstrimexpresshookformatomperformantshrinkwrapdescriptoreslintfinduppromisetestreadablejesthashreactnpmYAMLforEachawesomesauceflatMapcharactermatchAllremoveURLformatl10ninvariantclassespathentries_.extendstylingfasttestertaprmeventEmitterObject.getPrototypeOfTypedArrayxmlswfcolorsregular-expressionmovepruneInt32Arrayspinnersmomenthigher-orderJSON-SchemaserializationWebSocketscurlregularclass-validatorglobalswalkinglibphonenumberconfigurabletapedescriptorstypedexpressiondeleteUint8ArrayPromiseincludesthreefunctionhelperoptionreal-time$.extendforkfantasy-landObservablestakequeueglobes-abstractdragenvironmentssetImmediate
3.12.65

11 months ago

3.12.64

12 months ago

3.11.64

12 months ago

3.11.63

12 months ago

3.11.62

12 months ago

3.11.61

12 months ago

3.11.60

12 months ago

3.11.59

12 months ago

3.11.58

12 months ago

3.11.57

12 months ago

3.11.56

12 months ago

3.11.55

12 months ago

3.11.54

12 months ago

3.11.53

12 months ago

3.11.52

12 months ago

3.11.51

12 months ago

3.11.50

12 months ago

3.10.50

12 months ago

3.9.50

12 months ago

3.9.49

12 months ago

3.9.48

12 months ago

3.9.47

1 year ago

3.9.46

1 year ago

3.9.45

1 year ago

3.9.44

1 year ago

3.9.43

1 year ago

3.9.42

1 year ago

3.9.41

1 year ago

3.8.41

1 year ago

3.8.40

1 year ago

3.8.39

1 year ago

3.8.38

1 year ago

3.8.37

1 year ago

3.8.36

1 year ago

3.8.35

1 year ago

3.8.34

1 year ago

3.8.33

1 year ago

3.7.33

1 year ago

3.6.33

1 year ago

3.6.32

1 year ago

3.6.31

1 year ago

3.6.30

1 year ago

3.6.29

1 year ago

3.6.28

1 year ago

3.6.27

1 year ago

3.6.26

1 year ago

3.6.25

1 year ago

3.6.24

1 year ago

3.6.23

1 year ago

3.6.22

1 year ago

3.6.21

1 year ago

3.6.20

1 year ago

3.6.19

1 year ago

3.5.19

1 year ago

3.5.18

1 year ago

3.4.18

1 year ago

3.4.17

1 year ago

3.3.17

1 year ago

3.3.16

1 year ago

3.3.15

1 year ago

3.3.14

1 year ago

3.2.14

1 year ago

3.2.13

1 year ago

3.2.12

1 year ago

3.2.11

1 year ago

3.2.10

1 year ago

2.2.10

1 year ago

2.2.9

1 year ago

1.2.9

1 year ago

1.2.8

1 year ago

1.2.7

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago