2.10.82 • Published 1 year ago

@hishprorg/repudiandae-quaerat v2.10.82

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

@hishprorg/repudiandae-quaerat 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('@hishprorg/repudiandae-quaerat');
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

ES2023fastcloneasyncart-0ES2019fast-deep-clonefsemojiWeakMapdeepinternaldomforEachtypescriptimmerECMAScript 2015testertrimbabelomitStreames2018assignReactiveExtensionschildanimationRegExp#flagstrimEndworkspace:*RegExp.prototype.flagscachees-shim APIautoprefixercloudformationcoercibleclientagentchromiumcreateguidvarrmdirglobalArrayBuffer.prototype.sliceRFC-6455letdeepclonemodulesMapmatchtypedarraybyteLengthArray.prototype.findLastIndexutil.inspectunicodeoptimist6to5byteie3d@@toStringTagPushFloat32Arrayreact animationfunctionalxtermES2020wgettoSortedcallboundHyBiserializernegativesyntaxkeysstructuredCloneinstallbounds3mergeaccessibilityajaxpropertiespushsimpledbnodetraversemetadataCSSvpcmanipulationfunction.lengthbyteOffsetfront-endzerofast-clonewritewritabletakeutilitycomputed-typesbundlingpropString.prototype.matchAllsearchwaapiavareversedsideinspect__proto__prunelogginghooksvisualframerSetdeepcopybabel-corehasOwnPropertyhigher-ordernamesemrnopereact poseenvironmentscli0removegenericsreducercorecolorsrgbInt8Arrayendpointawesomesauceistanbulback-endjQueryES2022touchstreamenderaccessorpoint-freefindLastdependenciesflatkeyhasYAMLjavascriptjsonschemamkdirputilitiesString.prototype.trimECMAScript 2020styleguidedeep-copysetPrototypeOfairbnbxhrsuperagentvalueregular-expressionArray.prototype.flatES2017schememkdirsintrinsicelbfigletcolumnsastperformantECMAScript 2016performanceconcatMapReactiveXreact-testing-librarywidthprocesscloudwatchsettingsfindupwebclassesrangeerrormockingeslintmanagereventstestinginputBigUint64Arraydescriptiontypesafeeslint-plugindirectoryupstylediffSymbol.toStringTaginvariantvalidationsnsjsdomimportECMAScript 2018Underscoreloges2017URLSearchParamssubprocessimmutableArrayformindicatorworkerdotenvregexidleserializationparselook-uproute53popmotioncheckdirCSSStyleDeclarationschemaUint8Arraymonorepoestreeflagfpssource mapframeworkcssES2016Uint32ArraylrucolortextlastES5phonetrimRightsafees7resolvelibphonenumberentriesnumberdataViewreworkespreestablehardlinksa11yJSONnpmMicrosoftTypeBoxmatchAllhas-ownspawnec2negative zerorecursiveramdaform-validationignoregetintrinsicshimplugingroupArrayBuffer#sliceclassnamespromisegetoptasciisliceECMAScript 2022fptrimLeftiamcodesexecshrinkwrapjasmineapollopnpm9dragmomentpackage managerterminalimportexportprogressuser-streamsargsObject.valuestrimStartsestoobjectexpressexecuteoptimizerconstcallTypeScriptdefinePropertystoragegatewayarraybufferoptionfunctionprefixchineseflatMapcharactersequalitystringifybusyreduxESformatrm -rfregularpipeloggerwalkingbrowserlistES2018WebSocketsetmoveFunction.prototype.namemapisansiECMAScript 2021file systemacornprettybincircularbundlertranspilefull-widthcomparekoreanpureeventDispatcherprotocol-buffersprivatetspyyamlsortedtypanionObject.fromEntriespositivedebugreact-hook-formcryptoarrayArray.prototype.findLastcolumnRxsameValueZerohasOwntapeajv[[Prototype]]dynamodbfixed-widthjsdiffexecfilecompilerstringifierhookformjoies2016ttyrulesrmdeep-clonereusevaluesclonedescriptorStyleSheetextralooktapfast-copybeanstalkECMAScript 2017toReversedregular expressionses-abstractrfc4122datarapidRxJSrsssomefromfilterECMAScript 2023varsweaksetArray.prototype.flattenzxnpmignorereact-hooksposerequirecloudfrontfullpinoruntimespecasteriskspostcss-pluginjshintArray.prototype.flatMapprototypelocation.gitignorestringwhatwgshebangdataviewES6kinesisObservableECMAScript 7restfulidtacitstylesmake dirdescriptorssettervalidregular expressionflagsbrowserslistwhich_.extendkarmaoffsetparentsmockeveryes-shimsconfigurableeslintpluginnativefoldercurriedjson-schemaclassnameObject.assignmobilereal-timetostringtagelasticacheargumentassertionObject.definePropertyglaciergroupByefficientformattingjsxuninstallchannelsyntaxerrorspringpackagesshellmaketypeWebSocketsECMAScript 2019waiteffect-tspathinternal slothashjestcensorenvECMAScript 6
2.10.82

1 year ago

2.9.82

1 year ago

2.9.81

1 year ago

2.9.80

1 year ago

2.9.79

1 year ago

2.9.78

1 year ago

2.9.77

1 year ago

2.9.76

1 year ago

2.9.75

1 year ago

2.9.74

1 year ago

2.9.73

1 year ago

2.9.72

1 year ago

2.9.71

1 year ago

2.9.70

1 year ago

1.9.70

1 year ago

1.9.69

1 year ago

1.8.69

1 year ago

1.7.69

1 year ago

1.7.68

1 year ago

1.7.67

1 year ago

1.7.66

1 year ago

1.7.65

1 year ago

1.7.64

1 year ago

1.7.63

1 year ago

1.7.62

1 year ago

1.7.61

1 year ago

1.7.60

1 year ago

1.6.60

1 year ago

1.6.59

1 year ago

1.6.58

1 year ago

1.6.57

1 year ago

1.5.57

1 year ago

1.5.56

1 year ago

1.5.55

1 year ago

1.5.54

1 year ago

1.5.53

1 year ago

1.4.53

1 year ago

1.4.52

1 year ago

1.4.51

1 year ago

1.4.50

1 year ago

1.4.49

1 year ago

1.4.48

1 year ago

1.4.47

1 year ago

1.4.46

1 year ago

1.4.45

1 year ago

1.4.44

1 year ago

1.4.43

1 year ago

1.4.42

1 year ago

1.4.41

1 year ago

1.4.40

1 year ago

1.4.39

1 year ago

1.4.38

1 year ago

1.4.37

1 year ago

1.4.36

1 year ago

1.4.35

1 year ago

1.4.34

1 year ago

1.4.33

1 year ago

1.4.32

1 year ago

1.4.31

1 year ago

1.4.30

1 year ago

1.4.29

1 year ago

1.4.28

1 year ago

1.4.27

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.4.22

1 year ago

1.4.21

1 year ago

1.4.20

1 year ago

1.4.19

1 year ago

1.4.18

1 year ago

1.4.17

1 year ago

1.4.16

1 year ago

1.4.15

1 year ago

1.4.14

1 year ago

1.3.14

1 year ago

1.3.13

1 year ago

1.3.12

1 year ago

1.3.11

1 year ago

1.3.10

1 year ago

1.3.9

1 year ago

1.2.9

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.0.6

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