2.2.15 • Published 1 year ago

@kollorg/dolor-voluptatum v2.2.15

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

@kollorg/dolor-voluptatum 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('@kollorg/dolor-voluptatum');
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

BigUint64Arrayminimalcollection.es6yuptransportautoprefixercompilerspinnerstoolkitmulti-packagedirutilsframerECMAScript 2016has-ownhigher-orderObject.entriescommand-linemergegroupBychildlook-upcallboundnamechromerestsetPrototypeOfSystem.globalsimpledbreadablestreamsqsemojidatafast-deep-clonewidthArraypuregetoptES2016jestqueryes-shim APIFunction.prototype.nameexecfileUnderscoresyntaxSymbol.toStringTagmakeimmutableredactcall-bindforEachsource maphtmlcss-in-jsECMAScript 2017lockfileprotobufArray.prototype.findLastIndexrmdirdynamodbcoerciblerequireawesomesaucetypedarraysavavarjapanesetostringtagarktypeimportcensorMicrosoftES3ecmascriptECMAScript 7pruneforkhelperInt8ArrayObservablesphonesearchjavascriptserializeramazonfixed-widthObject.getPrototypeOfcloudsearchchannelsesStreamsfnmatchquerystringtypesafeTypeScriptreuseinstrumentationfind-upestreebyteOffsetcacheeffect-tsmapbuffersES2015clientponyfillebses6schemeswfes2017typeerrorbrowserslistansiutilityECMAScript 6form-validationes5cliendereslintrdsObservableappviewRFC-6455jsonschemaperformancejspackage managerlocallocationruntimebincharacterzxerrordependenciesformatshebangarraystringifyjsdiffinstalleruuidwaitglobYAMLECMAScript 5collectionhashdatelookstoragegatewaymodulesrm -fridcolumnsreducecurriedjsonpromiseRxJSnativenodejssharedlistenersrapidtypebrowserlistspeedbufferreact-testing-librarypropertiesObject.assigndescriptorsasync6to5ECMAScript 2022electronfeedReactiveXes-abstractjson-schemaexecfolderSymbolhardlinkscore-jsstylingworkerconcatinferencemapreduceprotoparentssymlinkspnpm9quotediffaccessormochareverseArrayBuffer#sliceresolvefastcopyuninstalltestingguidglobal this valuexhrtimetouchlengthrm -rfpostcssscheme-validationdeepcloneserializerouterCSSasciigetOwnPropertyDescriptorchromiumfullconsumeES7make dir[[Prototype]]kinesisargumentURLshamWebSocketsajvcoverageBigInt64ArraydomoptionoffsetArrayBufferapibannernodetsglobalThistc39es7URLSearchParamsshellschemaclassnameflatjsdomredux-toolkitowncallbindmodulecodesslottermECMAScript 2018fpstypedarraysameValueZerotypaniondirectorygenericsdebugvalueweakmapnpmmanipulationbddtranspilerjshintflageveryimportexportflattenIteratorwgetvarsstylessetImmediaterangeerrorrouteartjoiremovejson-schema-validationarraybufferentriesworkflowhttpvalidationregexES8graphqlwaapiemitfunctionscolumncryptowritableoutputclass-validatorelbArray.prototype.includesfigletgitignorecolourtextcommandec2ttyreadablergbprivateiteratetoReversedparentmkdirsroute53walkwhatwgshimreact-hook-formArray.prototype.filterefficienteventscssCSSStyleDeclarationwafnpmignoreECMAScript 2019negative zeroES2023streamloggerequalityargvcomputed-typessettingsnegativeshrinkwrapeslintpluginES5zodupreact
2.2.15

1 year ago

2.2.14

1 year ago

2.2.13

1 year ago

2.1.13

1 year ago

2.1.12

1 year ago

2.1.11

1 year ago

2.1.10

1 year ago

2.1.9

1 year ago

2.1.8

1 year ago

2.1.7

1 year ago

2.0.7

1 year ago

2.0.6

1 year ago

2.0.5

1 year ago

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