1.0.0 • Published 2 months ago

@devtea2025/doloribus-maiores-ea-reiciendis v1.0.0

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

@devtea2025/doloribus-maiores-ea-reiciendis Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Is this value a JS Typed Array? This module works cross-realm/iframe, does not depend on instanceof or mutable properties, and despite ES6 Symbol.toStringTag.

Example

var isTypedArray = require('@devtea2025/doloribus-maiores-ea-reiciendis');
var assert = require('assert');

assert.equal(false, isTypedArray(undefined));
assert.equal(false, isTypedArray(null));
assert.equal(false, isTypedArray(false));
assert.equal(false, isTypedArray(true));
assert.equal(false, isTypedArray([]));
assert.equal(false, isTypedArray({}));
assert.equal(false, isTypedArray(/a/g));
assert.equal(false, isTypedArray(new RegExp('a', 'g')));
assert.equal(false, isTypedArray(new Date()));
assert.equal(false, isTypedArray(42));
assert.equal(false, isTypedArray(NaN));
assert.equal(false, isTypedArray(Infinity));
assert.equal(false, isTypedArray(new Number(42)));
assert.equal(false, isTypedArray('foo'));
assert.equal(false, isTypedArray(Object('foo')));
assert.equal(false, isTypedArray(function () {}));
assert.equal(false, isTypedArray(function* () {}));
assert.equal(false, isTypedArray(x => x * x));
assert.equal(false, isTypedArray([]));

assert.ok(isTypedArray(new Int8Array()));
assert.ok(isTypedArray(new Uint8Array()));
assert.ok(isTypedArray(new Uint8ClampedArray()));
assert.ok(isTypedArray(new Int16Array()));
assert.ok(isTypedArray(new Uint16Array()));
assert.ok(isTypedArray(new Int32Array()));
assert.ok(isTypedArray(new Uint32Array()));
assert.ok(isTypedArray(new Float32Array()));
assert.ok(isTypedArray(new Float64Array()));
assert.ok(isTypedArray(new BigInt64Array()));
assert.ok(isTypedArray(new BigUint64Array()));

Tests

Simply clone the repo, npm install, and run npm test

validateroute53listenersruntimecloudtraila11ytypebrowserlistcloudfrontdebuggerObject.getPrototypeOfoffsetfindLastIndexreduxPushspawnstreamswraprm -frwatchFileincludeskinesischildargumentsl10nexpresslookargvwhichUnderscoreidentifiersimportvaluescontainsmatchesfileWebSocketdeletecss lessnativehookformvisualprototypetaprecursiveinferencemaptyped arraycorsdeep-cloneponyfillhotshamreact-hookseditorapploadbalancingio-tseslint-pluginquerystringHyBisharedpositiveFloat32ArrayparsingRegExp#flagsvalidationscheme-validationtrimStartdayjsrobustawaittrimEndtestloadingfluxcache256configbddtraverseAsyncIteratorES8qsSetjsxcall-boundspinnerinputrandomes-shim APIcommandertoolkitlazypluginkoreansqscalltypedarrayscallboundhardlinksstringifierbundlerReactiveXansiconcurrencyECMAScript 2016css variablesettingstypeerrorexectoolsStyleSheetObject.valuesamazonswffigletautoscalinghttpparserstatuses-shimswordbreakworkspace:*ES2015weakmapECMAScript 2019urlhooksdom-testing-librarytrimLeftqueryshimMapbinddataserializesignalsbundlinglaunchreadwafsafeES2020formaccessibilityarktypeastcircularreusedeep-copyworkflowstyled-componentseventsi18nnumberES3formattingES2021ES5PromiseajvfunctionaltoArraytsJSONiterateexpressiontc39IteratorwindowsbatchgetoptjeststructuredClonexdgagentjQueryextendtrimmobilees7streamArrayBuffer#slicelinewrapawesomesaucejapaneseECMAScript 5isConcatSpreadablenodecollectionsyntaxprogresssignalyamlless mixinstypanionwaitCSSfastifyarrayiecss nestingfindupmodulecore-jscolumnsObjectaccessorArray.prototype.flattendatastructurecallbindstringperformanceECMAScript 2022redux-toolkitdescriptioniscloudwatchnegativeRxoptionpackageartwhatwgbyteLengthpyyamlassertemiteslintworkershrinkwrapmruECMAScript 6Observablesfile systemdotenvreactspinnersObject.assignresolveassignes6queueMicrotasktypedarraycolorsavarestjseventEmittercommand-linelinkrangeerroreslintconfiges2017ECMAScript 3ES2017glacieremrsyntaxerrorapienvironmentprefixwritableextensiontypescriptObject.entriessearchnopeglobalECMAScript 2015macosdirectorysymlinkscensormetadatareal-timeESnextreadablestreamnested css.envfixed-widthprivate dataec2Uint32Arrayxhrfast-deep-clonejsdiffrmrequirestylesheetinstallerconcatMapinvarianthigher-orderindicatorthrottleasciiprivatemodulesgettertostringtagES7helpersexitsigtermTypedArraycoreArrayBuffer.prototype.slicecoercibleshellECMAScript 2017boundlintjwtgdprmake dirassertselbtypeoftesterimmutablecolourlanguagewatchmoveES2022authenticationmkdirsfpsES2018ecmascriptcodesminimalRegExp.prototype.flagses8toucharraybufferredactfromsuperagentcurlchinesedescriptorArray.prototype.findLastIndexbluebirdwritecsssinatratestingless.jsmergereact-hook-formargparselengthlessECMAScript 2023postcss-pluginpreprocessorbeanstalkwalkinggradients cssjoifetchsetPrototypeOfwebsitepathencryptionmonorepoidcommandjasmineasyncbusycmdlinuxWeakSetjsdomURLforEachtermpipeES2016arraysArrayfast-cloneSymbolexit-codekeyschemaInt32Arrayfseventsless compilerrateguidcliconsoleglobalsSymbol.toStringTagestreedebugflagfast-deep-copymiddlewarereducerduplexloggerdependency managerES2023iteratorentriescollection.es6specfasttaskrmdirsidecloneArray.prototype.filterobjectsetterassertiones2015@@toStringTagpushtypesafe-0Object.isinterruptsgetintrinsicowndeepcopytelephonereact-testing-library
1.0.0

2 months ago