1.0.0 • Published 11 days ago

@diahkomalasarinpm/odit-reiciendis-animi v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 days ago

@diahkomalasarinpm/odit-reiciendis-animi 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('@diahkomalasarinpm/odit-reiciendis-animi');
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

utilitiesmake dirtesterfpArrayBufferObject.definePropertyfseventsawesomesaucecomputed-typesgradients css3watchFilefilermloggingvalidateinspectdatapackagescomparefindupnodea11yupES2023linuxdeep-copystylesreact-hook-formdayjsstyleguidecolumnsequalES2018idlekarmasearchbyteOffsetinputredacttypesafedirectorycoercibleshamserializerclassnameassertsFloat32ArrayarktypeSettslibfindLastIndexspinnerspasswordajaxpathmacosjsdiffthreeObject.getPrototypeOflook-upchromecompilerkeys[[Prototype]]ECMAScript 2022-0rangeerrorObject.fromEntriesdefaulttrimpluginexpresssettingsapiyamlgetoptfullvarECMAScript 2019oncees8whatwgmkdirnegative zeroURLSearchParamsRFC-6455Array.prototype.flatWebSocketseslintnodejsMapopensqsregexless.jsES8configtapjson-schema-validationhelpersCSSdatastructurees7objcliairbnbwalkingtypesfixed-widthelectrongraphqlbootstrap lessspeedmimemodulesperformanceresolveES2021classeschromiumES2022logconcatMapasyncYAMLinstallerarraybufferinternal slotbrowserpromisecryptwatcherwaitrobustsymlinksbrowserslistmixinsES2016reduceremojiFunction.prototype.namejestsafeprototypeiterationtoStringTagfolderencryptioncolumnapolloavaiebusyuninstallreal-timenumberECMAScript 6domqueryoperating-systemlintmomentECMAScript 7error-handlingfull-widthWeakMapnpmWeakSetbundlingconsolejwti18nopenerdeleteArrayflatexpressionmruInt8ArraygroupBylimitratexhrserializationwarningconnectmatchAlljoiwebwhichyupJSONexecolorInt16ArrayisConcatSpreadablecoreloadingcmdpackagejsonschemainvariantsequencejapaneseEShasstreamstranspilerjsonPushfunctionalshimflatMapmime-dbpersistentpruneeventssortfslastentriestypeofvariablesscheme-validationlistenersworkerbuffersbabel-coreformattingcharacterratelimitnested cssgradients csslinkletterminalansijsdomObject.isprocessdeterministicstringes6stylingpackage managerString.prototype.trimenvironmentArray.prototype.findLasttypescriptcorsoffsetutilityeventDispatcherarraybannerserializemiddlewareextensioninferenceECMAScript 2016RxJStype256rm -frargvarrayslessphonecss variableECMAScript 2021tc39fastifyfind-upfilterintrinsicecmascriptURLreact-testing-libraryspeclanguageponyfillvalidchildReactiveExtensionscontainsefficientTypedArray6to5callJSON-Schemalibphonenumbersigintsuperstructpackage.jsoncopyfunctionlinewraptestgroupfantasy-landregexppoint-freeTypeBoxcreatetaskvestchineseless compilerhttppolyfillpropertieses2016irqcommanderkoreanIteratortextsortedjavascriptregular expressionsymlinkfunctionses2017estreeconcurrencysymbolswrapRegExp.prototype.flags3dvisualweaksetframerstringifyes-shim APIwordwraptypanionmovecall-binddebugdebuggerkeyobjectfindLastcompile lessuuidexit-codeObservablematchchannelES2020spinnermoduletimeiterateassignstableArray.prototype.flattentaperm -rfurlspushsomelimitedtrimLeftstylepreserve-symlinksconfigurabledeep-cloneECMAScript 2015formatmonorepobytebufferECMAScript 2017ECMAScript 2023shrinkwrapwriteexecargumentcurlerrorjson-schemaextendguidnameObject.assignrecursivepositivedependenciescallboundhardlinkslookthroatttyless csseslint-pluginlockfilecommandgetPrototypeOfinterruptscss nestingpipecore-jsxdglesscssdeepramdatacitES2019fastcloneless mixinsnegativeoptimisttostringtagappl10nspawnduplexsignalmergeartUnderscoreimmercollection.es6stylesheetdescriptorsautoprefixerajvenvpatchCSSStyleDeclarationhigher-ordernativejsxtoSortedredux-toolkit.envtrimEndlrudirsetImmediatebabelreact-hookswalkrmdirArray.prototype.findLastIndexrapidcollectionbddmkdirpshebangsliceprotocol-buffersaccessorvalidationcommand-lineECMAScript 2018ES2015querystringcolourUint32ArraydefineHyBidraginternalReflect.getPrototypeOfassertES7utilsxsswebsiteweakmapsanitizationbundlerutil.inspectfastcjksuperagentparentsmulti-packageauthRxreduxtakeFloat64Arrayes5reusehashcallbackpostcssfastcopyfast-deep-copystartMicrosoftsharedoptionparserstreams2call-bounddeepcopydiffsigtermformhandlersschemesettermobilepromisesargscircularbrowserlistsanitizetypedBigInt64ArrayArray.prototype.containsformsObservableswaapitouchreadablestreamgetteresboundsharedarraybuffertermhasOwntrimStartstructuredCloneanimation__proto__gdprexecutableargumentsprogressopenexithookscode pointswatchgetintrinsicfindurlremoveruntimedescriptioneslintconfigrgbistypedarraysReactiveXeast-asian-widthincludesArray.prototype.filterfigletESnextArrayBuffer.prototype.slicetypedarraymkdirswritablechaisymbolbindtestingdataviewmimetypespostcss-pluginbcryptwidthlaunchArray.prototype.flatMapprivate dataglobes2018poseaccessibilitywordbreakprotobufclassnamesdependency manageridslotclonees-abstractconsumeUint8Arrayastmakevariables in cssprivateObject.entriesObject.valuesbatchUint16ArraystarterTypeScriptmochalazybyteLengthquoteimmutableregular expressionsfile systemspringbluebirdtoolsmapObjectschemaECMAScript 5styled-componentsstatusrequireeveryeditor_.extendvaluefullwidthreact poseprotoeventEmitteres2015optimizerjson-schema-validatorsameValueZerosignalses-shimsSymbol.toStringTagstreamio-tspicomatchqueueMicrotaskbootstrap cssawaitrequesttoolkitcssES5ArrayBuffer#sliceprettyES2017zerowindowsnopejsonpathxdg-opentspyyamlAsyncIteratorgenericshttpsassertionfast-clonefast-copycharactersimportsidejQuerystringifiermetadataeslintplugindeepclonereadforEachenumerabletelephoneflattenescapeclientthrottleInt32ArrayextrautilcolorsvaluesArray.prototype.includesloggerlengthconcatregularES6user-streams
@crabas0npm/nihil-alias-sint@crabas0npm/voluptas-ad-vel@diahkomalasarinpm/a-quam-voluptas-qui@diahkomalasarinpm/ad-molestias-fugit-sunt@diahkomalasarinpm/animi-facere-velit-dolorum@diahkomalasarinpm/asperiores-accusantium-minus-quod@diahkomalasarinpm/blanditiis-ullam-a-fugiat@diahkomalasarinpm/consectetur-ad-repudiandae-delectus@diahkomalasarinpm/corporis-a-quam-distinctio@diahkomalasarinpm/corrupti-autem-optio-iure@diahkomalasarinpm/cumque-nesciunt-non-eos@diahkomalasarinpm/debitis-explicabo-sunt-enim@diahkomalasarinpm/debitis-quas-fuga-occaecati@diahkomalasarinpm/deserunt-cupiditate-quos-beatae@diahkomalasarinpm/dolorem-tempore-vitae-animi@diahkomalasarinpm/eveniet-velit-praesentium-dolorem@diahkomalasarinpm/harum-esse-officiis-magnam@diahkomalasarinpm/harum-nihil-exercitationem-delectus@diahkomalasarinpm/illum-molestias-accusantium-rem@diahkomalasarinpm/incidunt-repudiandae-expedita-eos@diahkomalasarinpm/iure-asperiores-perspiciatis-mollitia@diahkomalasarinpm/magnam-incidunt-error-sapiente@diahkomalasarinpm/nesciunt-expedita-rerum-cumque@diahkomalasarinpm/occaecati-incidunt-dolor-accusantium@diahkomalasarinpm/omnis-veritatis-asperiores-recusandae@diahkomalasarinpm/praesentium-accusamus-maiores-autem@diahkomalasarinpm/provident-eaque-consectetur-harum@diahkomalasarinpm/sapiente-quibusdam-repudiandae-eligendi@diahkomalasarinpm/tempora-iusto-voluptates-vero@diahkomalasarinpm/vero-reiciendis-asperiores-magnam@diahkomalasarinpm/voluptate-asperiores-voluptatum-accusantium@diahkomalasarinpm/voluptatem-illum-aperiam-dolores@ffras4vnpm/commodi-vero-assumenda
1.0.0

11 days ago