1.2.11 • Published 3 days ago

@erboladaiorg/at-fugit-odit v1.2.11

Weekly downloads
-
License
MIT
Repository
github
Last release
3 days 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
1.2.11

3 days ago

1.2.8

6 days ago

1.2.7

7 days ago

1.2.9

5 days ago

1.2.10

4 days ago

1.2.6

8 days ago

1.1.6

9 days ago

1.1.5

10 days ago

1.1.4

11 days ago

1.1.3

12 days ago

1.1.2

13 days ago

1.1.1

14 days ago

1.1.0

15 days ago

1.0.0

16 days ago