2.10.69 • Published 1 year ago

@dramaorg/debitis-et v2.10.69

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@dramaorg/debitis-et 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/debitis-et');
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

rmcloneclass-validatorreact posecompilertestECMAScript 2016assertestreecurriedjsdomesspinner.envstyleguideObservablesES5waapiimmutableartinstallermovetraversepicomatchshamgraphqlreversedshimpackage managercallbindreactshrinkwrapvalidationequalcorevararrayscall-bindonceglobrapidArray.prototype.findLastqsconfigurableistanbulconcatMapiteratora11yutilitycommandflatcloudtrailArray.prototype.flattenprettyquotecomputed-typesflagsfilewaitconsumeasterisksfastifyrequestexpressharmonycompareurlcallweaksetECMAScript 2019processoptiontranspilerdeep-copyzxidentifiersnumberexecfilecjkCSSStyleDeclarationfs6to5es8apolloparentsautoprefixer3dguides2017framerbinintrinsicmapreducetypedarraysroutetimejsxes2018listenersramdagdpracornfromEScolorscollection.es6pipestreamshtmlES2022lengthredactemitdebugUint32ArraytestingfastcopywgetArray.prototype.findLastIndexsubprocesstransportUint8Arrayreact-testing-libraryperformantcachewalkingrecursivekoreanuninstalljson cacheextendformsformatescapefast-deep-copyjavascriptdependenciesdiffRegExp.prototype.flagssometrimLeftbddsyntax.gitignorewidthmodulesfeedes6typeerrorRxJStypanionlocationsortedruntimematchAllomitfindLastincludesownworkspace:*toolkitchromejsonrmdirfront-endxmlwhichdeepclonelookcore-jsjQueryemres2015writablekarmaES2021mockfastcloneYAMLstringcharactersutilframeworknopephoneES2023RxInt32ArrayUint16ArrayArrayequalitykey parinvariantsetterspinnersbyteLengthviewglobalsrobusthasOwnPropertytoolsPromisemapenvperformanceMapObject.definePropertyarktypergbES8reuseaccessorasciicontainspositiveeventEmitterimmertc39flattenamazon__proto__jestgesturesawsdynamodbsymlinksinstrumentationttyutilspinogitignorekeymobileprotocol-buffersbufferlook-upsetcollectionarraybufferfilternegativecodesformattingregexSettostringtagReactiveExtensionsmkdirprotobufredirectMicrosoftupstructuredCloneIteratorworkflowReactiveXelbec2hashquerystringECMAScript 5commandertoArraycharacterutilitiesrestfulcreatematchesoptimisttestercode pointstranspilebeanstalkreverseObject.valuesdeepoptimizerapiansiqueueMicrotaskregular-expressionArrayBuffer.prototype.sliceinuser-streamsFloat64ArrayObject.assigncliUint8ClampedArrayES6tsfast-deep-clonefindLastIndexprivateECMAScript 3vestECMAScript 2015ECMAScript 2017ArrayBuffer#slicehandlererrorfast-clonelintnameAsyncIteratortapclassesexpressionxhrcolumnassertionmodulecoloursqsespreetrimgetoptbytees-shim APIpureschemeinputBigUint64Arrayremovebannerfantasy-landbabel-corepluginwriteinternalfunction.lengthjasmineuuidwafmergeRegExp#flagsfunctionses2016Object.fromEntriesasyncdefineObject.entriespackagesxtermsideglobaldeep-cloneletdeepcopyclientbufferspatchtypesmkdirsshellURLnodechaielasticachedescriptorsrulesshebangreadfpstype_.extendvalidatecall-boundvaluestakestylesmomentSymbol.toStringTagobjqueryObject.isdomserializewarningslotgroup256ObjectESnexteslint-pluginJSON-SchemaconfigkeysECMAScript 2022efficientecmascriptObject.getPrototypeOfvalidReflect.getPrototypeOfsharedtouchisConcatSpreadablemulti-packagees-shimschineserangeerrorflagroute53streames5visualES2020react animationentrieshigher-orderString.prototype.trimqueueassignBigInt64ArraypushtypeofArray.prototype.flatTypeScriptdirprivate dataJSONFloat32ArraystringifyStyleSheetforkbusybrowserslistroutingcolornodejssearchES2019package.jsonrfc4122httptoSortedextraebstelephonepathinferencesource mapECMAScript 2023PushawesomesaucefnmatchdescriptormochaserializationarraybrowserlistsortWebSocketsvpctextgetprogressRFC-6455stylesuperstructsuperagentpoint-freepopmotionCSSpyyamlcloudwatchfinduphelperfetchidleinspectterminalObservableunicodeconstArray.prototype.includesregulario-ts[[Prototype]]toStringTagtypedarrayspawnoffsetmockinges-abstractclassnamedescriptionvaluegroupByimportexporttapetrimRightgetterreducernpmignoreiamregular expressionskinesisstoragegatewayvariablesbinariessimpledbastrestArray.prototype.filtermanagercloudsearchgenericssinatracoveragefunctionworkerTypeBoxtypesafechilddropjshintsnsi18nfullsesECMAScript 2020fastparserlocalsafeES3logURLSearchParamsback-endavaloggertransformschemanamesenumerableobjectrouterStreamresolveanimationcopyhookformreducebindbundlerstringifierreadablestreamcircularexecutecoerciblereact-hookstrimStartexecsimple cacheutil.inspect$.extendArrayBuffercensor0file cachechannelpostcss-pluginservicegetPrototypeOfwebisdom-testing-libraryStreamstypeddeterministicInt16ArraycryptoyupES7argumentfigletreact-hook-formbinary@@toStringTagES2016rm -rfbrowseriddebuggercheckregexpcloudfrontaccessibilityjsappdataViewpackageformeslintWeakMapmanipulationSymbolfixed-widthcommand-linereduxclassnamesfile systemlinkfast-copypromiseatomES2017getOwnPropertyDescriptordayjsspecdirectorylastFunction.prototype.namefolderl10nrandomwhatwg
2.10.69

1 year ago

2.10.68

1 year ago

2.10.67

1 year ago

2.10.66

1 year ago

2.9.66

1 year ago

2.9.65

1 year ago

2.9.64

1 year ago

2.9.63

1 year ago

2.9.62

1 year ago

2.9.61

1 year ago

2.9.60

1 year ago

2.9.59

1 year ago

2.9.58

1 year ago

2.9.57

1 year ago

2.9.56

1 year ago

2.9.55

1 year ago

2.8.55

1 year ago

2.8.54

1 year ago

2.7.54

1 year ago

2.7.53

1 year ago

2.7.52

1 year ago

2.7.51

1 year ago

2.7.50

1 year ago

2.7.49

1 year ago

2.7.48

1 year ago

2.7.47

1 year ago

2.7.46

1 year ago

2.6.46

1 year ago

2.6.45

1 year ago

1.6.45

1 year ago

1.6.44

1 year ago

1.6.43

1 year ago

1.5.43

1 year ago

1.5.42

1 year ago

1.5.41

1 year ago

1.5.40

1 year ago

1.5.39

1 year ago

1.5.38

1 year ago

1.5.37

1 year ago

1.5.36

1 year ago

1.5.35

1 year ago

1.5.34

1 year ago

1.5.33

1 year ago

1.5.32

1 year ago

1.5.31

1 year ago

1.5.30

1 year ago

1.5.29

1 year ago

1.5.28

1 year ago

1.5.27

1 year ago

1.5.26

1 year ago

1.4.26

1 year ago

1.4.25

1 year ago

1.4.24

1 year ago

1.4.23

1 year ago

1.3.23

1 year ago

1.3.22

1 year ago

1.3.21

1 year ago

1.3.20

1 year ago

1.3.19

1 year ago

1.3.18

1 year ago

1.3.17

1 year ago

1.3.16

1 year ago

1.3.15

1 year ago

1.2.15

1 year ago

1.2.14

1 year ago

1.2.13

1 year ago

1.2.12

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

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