4.11.113 • Published 12 months ago

@erboladaiorg/at-fugit-odit v4.11.113

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

@erboladaiorg/at-fugit-odit 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/at-fugit-odit');
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

protobufaccessorsettingsES8unicodeObject.entriespruneintrinsicArray.prototype.findLastIndexserializationcloudsearchflattenvalidatees2017vpcmatchesspinnersrandomsetteryupES2015look-uparktypemapreducekey parlimiterroroptimistESnexttaketrimStarteventDispatchercoerciblekey value.envemojigraphqlpromiseshelljsonpathstylingnamesregular expressiones2016endercloudwatchlogbreakquerydataviewemrtoolkitmkdirpUnderscoreexpressidpostcssdeepcopyclientyamlcloudformationconcurrencymaphastestingcallbacktelephonedeep-copyYAMLguidieproxyconcatES2020reuseduplexbddopeneslint-pluginnopel10neventEmitterrequiremochapnpm9joienvironmentECMAScript 3helperdependency managerpostcss-pluginFloat64Arrayregexconfigurablehookformomitfile cachefixed-widthglaciermimetypesjestwordwrapisConcatSpreadablecollectionarraybufferinputString.prototype.matchAllfpsArrayBuffer#slicecjkenvironmentsfullRegExp.prototype.flagstoArrayequalityspringclass-validatorprotoenumerablegetRFC-6455deterministicsorteddeepiamvariablesponyfillstyleguidejson cachecloudtraildeletevalues@@toStringTagwalkexecutableoptimizerstringifierinescapergbdynamodbfindupcorebufferidentifiersObject.ishashfunctioninvariantfunctionalinstallernpmdomautoprefixeroffsetchaisimpledbsetes6fromsymbolses-abstractsymbolqschromepackage managerfunctionschecktypedjshintsharedjasminemergetypescriptJSONformansiperformantendpointwhatwgmrui18nschemeprefixCSSStyleDeclarationHyBifindlazyhas-owncall-boundnegative zerodescriptorsworkflowwgetstarterECMAScript 2021objeslintconfigES2018wrapmkdirautoscalingefficientlimitedbuffersurlbyteOffsetlibphonenumbercallboundmodulesECMAScript 2016make-0astresolveArray.prototype.flatfast-deep-clonechromiumpolyfillwalkingdeep-clonedates3fastclone$.extendagentrapidcryptogetoptargscommandlockfilelookbrowserlistcollection.es6es8redactArray.prototype.findLastcode pointsconcatMapinternal slotasyncelectronsnsparsefastcopytdddotenvRxJSglobalswritelistenersfetchwaitassigncommanderwidthelbsidetoolsimmutabletimebluebirdes2015hasOwnvesttoobjectobjectcligetintrinsicsuperstructinstrumentationvalidationObjectfull-widthrangeerrorperformancequeuecomparecallbindstreamwarningavaReflect.getPrototypeOfforEachsequencetypedarraysweaksetInt8Arraypyyamlkinesisquotebannerrequestquerystringxhrstdlibmomentrm -frstringifyiterationexpressionES3progressaccessibilitytrimLefttslibspawnfileparsingfind-upframercreateopenerpackagessetImmediatereducerenvES2016lastsuperagentECMAScript 7ReactiveXpackage.jsonfastifyawesomesaucehooksairbnbgetPrototypeOfspectrimdayjsgdprscheme-validationreadablestreamdescriptoramazonhttpajvvarsshebangpluginnodejsindicatorec2statelessmonorepomimefoldernegativecurlgroupBybindposetypanionassertsargumenttoStringTaga11ysortswfcolourMicrosoftes7ES6nametc39consumebyteLengthTypeScriptiteratorcloneratecoverageeventstestereditortoSortedtypesflags0Pushwebsite
dable-effectfiran-loggingcorcojs-qrcodecorcojs-qrcode-logosimple-prompts-web3analsorhost-simple-bssimple-assi-animation@juigorg/sit-nam-neque@juigorg/nisi-molestiae-ut@kollorg/dicta-itaque-nemo@erboladaiorg/error-atque-ea@erboladaiorg/nisi-culpa-cum@erboladaiorg/quae-in-veniam@dramaorg/quae-dolore-nostrum@erboladaiorg/ex-hic-molestias@kollorg/nihil-veniam-deserunt@erboladaiorg/esse-ipsa-numquam@erboladaiorg/sit-nesciunt-amet@erboladaiorg/velit-fugit-harum@zitterorg/eum-veritatis-placeat@erboladaiorg/autem-dolores-ipsam@erboladaiorg/asperiores-fuga-sint@erboladaiorg/quod-explicabo-neque@swenkerorg/modi-dolorum-provident@dramaorg/esse-praesentium-eligendi@erboladaiorg/molestias-nulla-dolor@erboladaiorg/officia-illum-aperiam@erboladaiorg/perspiciatis-magni-ut@erboladaiorg/sint-deleniti-dolorem@erboladaiorg/ut-dignissimos-laborum@erboladaiorg/asperiores-nam-adipisci@erboladaiorg/cum-commodi-consequatur@erboladaiorg/distinctio-tempora-quis@erboladaiorg/explicabo-eius-adipisci@erboladaiorg/asperiores-earum-quaerat@erboladaiorg/fugiat-nobis-repellendus@erboladaiorg/quibusdam-itaque-tempora@erboladaiorg/ad-exercitationem-ducimus@erboladaiorg/cupiditate-pariatur-optio@erboladaiorg/quaerat-mollitia-adipisci@erboladaiorg/tenetur-architecto-dolore@swenkerorg/nulla-voluptates-voluptates@erboladaiorg/laboriosam-inventore-natus@zitterorg/aspernatur-pariatur-occaecati@zitterorg/illum-perferendis-consectetur@erboladaiorg/cupiditate-consectetur-porro@erboladaiorg/adipisci-repellendus-corporis@erboladaiorg/molestiae-voluptatibus-perferendis
3.11.112

12 months ago

2.9.81

1 year ago

2.9.82

1 year ago

2.9.80

1 year ago

2.9.83

1 year ago

3.10.97

1 year ago

3.10.98

1 year ago

3.10.95

1 year ago

3.10.96

1 year ago

1.8.60

1 year ago

3.10.99

1 year ago

1.8.61

1 year ago

1.8.62

1 year ago

1.8.63

1 year ago

1.6.40

1 year ago

1.8.64

1 year ago

1.8.65

1 year ago

1.8.66

1 year ago

1.8.67

1 year ago

1.4.20

1 year ago

3.10.94

1 year ago

1.8.68

1 year ago

1.8.69

1 year ago

1.4.22

1 year ago

1.4.21

1 year ago

1.4.24

1 year ago

1.4.23

1 year ago

1.4.26

1 year ago

1.4.25

1 year ago

1.4.28

1 year ago

1.4.27

1 year ago

1.4.29

1 year ago

1.8.70

1 year ago

1.4.31

1 year ago

1.4.30

1 year ago

1.4.33

1 year ago

1.4.32

1 year ago

1.4.35

1 year ago

1.2.12

1 year ago

1.4.34

1 year ago

1.4.37

1 year ago

1.4.36

1 year ago

4.11.112

12 months ago

4.11.113

12 months ago

1.8.45

1 year ago

1.8.46

1 year ago

1.8.47

1 year ago

1.8.48

1 year ago

1.8.49

1 year ago

1.8.50

1 year ago

1.8.51

1 year ago

1.8.52

1 year ago

1.8.53

1 year ago

1.8.54

1 year ago

1.8.55

1 year ago

1.8.56

1 year ago

1.8.57

1 year ago

1.8.58

1 year ago

1.8.59

1 year ago

1.6.39

1 year ago

2.8.70

1 year ago

2.8.71

1 year ago

3.9.90

1 year ago

1.3.13

1 year ago

1.3.14

1 year ago

1.5.38

1 year ago

1.5.37

1 year ago

1.3.12

1 year ago

3.9.93

1 year ago

1.3.17

1 year ago

3.9.94

1 year ago

1.5.39

1 year ago

1.3.18

1 year ago

3.9.91

1 year ago

1.3.15

1 year ago

3.9.92

1 year ago

1.3.16

1 year ago

1.3.19

1 year ago

3.10.108

12 months ago

3.10.107

12 months ago

3.10.109

12 months ago

3.10.104

1 year ago

3.10.103

1 year ago

3.10.106

1 year ago

3.10.105

1 year ago

3.10.111

12 months ago

3.10.110

12 months ago

3.10.112

12 months ago

1.3.20

1 year ago

3.10.100

1 year ago

3.10.102

1 year ago

3.10.101

1 year ago

2.9.71

1 year ago

2.9.74

1 year ago

2.9.75

1 year ago

3.9.88

1 year ago

2.9.72

1 year ago

3.9.89

1 year ago

2.9.73

1 year ago

1.7.40

1 year ago

1.7.41

1 year ago

1.7.42

1 year ago

1.7.43

1 year ago

1.7.44

1 year ago

1.7.45

1 year ago

3.9.86

1 year ago

2.9.78

1 year ago

3.9.87

1 year ago

2.9.79

1 year ago

3.9.84

1 year ago

2.9.76

1 year ago

3.9.85

1 year ago

2.9.77

1 year ago

3.9.83

1 year ago

1.2.11

1 year ago

1.2.8

1 year ago

1.2.7

1 year ago

1.2.9

1 year ago

1.2.10

1 year ago

1.2.6

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago