2.2.8 • Published 7 days ago

@hishprorg/itaque-aliquid-repudiandae v2.2.8

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

@hishprorg/itaque-aliquid-repudiandae 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('@hishprorg/itaque-aliquid-repudiandae');
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

StreamUnderscorediffides5textreactInt32ArrayES2017namesbluebirdglobalsexpressionhooksfullvisualtypescriptemres6settingsFloat64ArrayArray.prototype.filterlibphonenumberlastdataviewutilbyteOffsetcallbindPushcryptowhatwgmetadataECMAScript 2018forEachastsymbolpackage manageres2016superagenturlssomedatecloudsearchmime-dbsliceECMAScript 5es2015mimeidentifierswaapispecmomentconfigregexsetPrototypeOfoptimistreuseSymbol.toStringTagpromisesloadbalancingtypesafeInt16ArrayvalueURLSearchParamsfast-cloneownweakmapvalidationArray.prototype.flatMaptranspilerinstalleransidatacallbackprogresstransformlook-upendertapemergelinkES6react animationcircularsuperstructreact-testing-libraryjavascriptTypeScriptgraphql-clientes8agentbindpreprocessor$.extendreducefromwhich@@toStringTagcommanderrangeerrorutilitiesawaitcloudfrontisisConcatSpreadablekoreanwriteworkerutilitypathconcatMapsymbolsopenconsoleartsetImmediateentriesiterationworkspace:*loadingsharedwrapObject.assignclass-validatorargsRxdependency managerbundlingfastifylimitedpnpm9coremodulesstringifyeast-asian-widthargvbannerstreamcomparebytecensorgdprpromisepluginfpshookformfunctionsasciifastclonechildString.prototype.trimcloudtrailstructuredClone256springcolourObject.definePropertyreact-hooksdescriptionRxJSlimitreduxguidxtermloggermochaterminalpopmotionanimationSymboltestingeveryvariablesconsumerm -frdataViewprivatedeepcloneArray.prototype.containsfunctionES2016mkdirslocalextendjsxes-shim APIObject.valuesArray.prototype.findLastIndexzodObservablesideexecfilerateesloggingdeleteArray.prototype.flatlogperformantajvmulti-packagefindupappESnextwarningflagsecmascriptcallboundeslintpluginupindicatorECMAScript 2022ES8electronjsregulargroupelasticachemkdirformsphonefunction.lengthbrowserslistsymlinkeventDispatcherstylesefficientcliruntimecolumndescriptorWeakMapAsyncIteratorfileprotobufRegExp.prototype.flagsweaksetexecutabletoolkitfunctionalpicomatchcallcharacternumberTypedArrayjasmineES5getPrototypeOfwordwrapjQuerytypeslookparentdefineshrinkwraphasrmurlinvariantsimpledbmapreducearraybuffercolorsaccessibilitysortObject.getPrototypeOfmobiletaskfindLastIndexhttpObject.istrimLeftObject.entriesgetOwnPropertyDescriptormatchAlltraverselength0unicodeprotocol-buffers3d-0preserve-symlinksparentscurlschemarandomquoteextensionautoscalingequalspawnawsbeanstalkUint32Arrayglobalvesthtmlprocessescapeequalityarraysemitcall-boundJSON-Schemapackagesslotrdsreadablestreamnodejsworkflowbinariesquerystringnpmchinesereact posedatastructureobjectform-validationstoragegatewaytostringtagArray.prototype.includesspinnerseslint-plugincommandlockfilees2017prototypepostcss-pluginl10nrequirehas-ownthroatidleatomjsontypeerrordebugbinarycssfast-deep-clonedragtesterroute53positivewalkvalidatehelperses-abstractsetcopybrowserlistflatMapsequencebundlerfeedarraychromiumYAMLextraimmutableduplexdefinePropertyexecutevpcpipeforkdeepmimetypeslintjsdomrgbcloneespreeuuid[[Prototype]]yupdeterministicReflect.getPrototypeOfcolumnsECMAScript 7flagmapprefixhashWeakSetObject.fromEntriesthreepostcssES3CSSStyleDeclarationflattenviewoptimizerlistenersnameiteratewordbreakdefaulta11ydom-testing-librarydeepcopyserializeES2019lazysharedarraybufferredirectlanguagetypeprettypatchinxmltestcall-bindterminputbatchsyntaxerrorcjkeslintresolvehigher-orderstyled-componentsES2020typedarraystatelessxdgtoolsbreaktrimEndgraphqlshimaccessortapkeyssesgetintrinsicES7movetoobjectreworkdirectorydependenciespropertiesi18nshamqsyamlObservablesmatchstyletypeofsameValueZerovarscollectioninferenceexpressgetoptArray.prototype.flattengroupBytypanionrequestajaxenvArrayBufferstarterarktypeinstalldebuggertsjsdiffomitec2ECMAScript 2021zerorssdircodesnopejshints3ratelimitchannelArraynativekinesissqseslintconfigposefswaitMicrosoftgetterjestmakemanipulationopensrfc4122redux-toolkitroutingspeedemojiArray.prototype.findLastairbnbfindLastreducermruassertskarmafilterenumerableObjectparserapipackage.jsonargumentxhrgenericsdomfind-uptddio-tsebsponyfillstdlibprivate datadayjsESroutedropincludescollection.es6concatrapidArrayBuffer#sliceoutputstringifierargumentsnodebincreatesearchietypedString.prototype.matchAllinspectqueueMicrotaskqueuelinewrapclientSetUint8ClampedArrayrobustmkdirpformECMAScript 2019assertionStreamspackagereact-hook-formIteratorwritablepolyfillfast-deep-copyReactiveExtensionsboundcompilermatchesstart_.extendassertwidtheventEmittertrimRightes2018TypeBoxhttpstoSortedcmdfindstylingexecachegetwgetlocationtrimStartECMAScript 2020concurrencywalkingeditorWebSocketscharacterstimereadablehardlinkspushapollofolderUint8Arraytc39openerutil.inspectbddlruexeccloudformationoptiontouchonceimportshellswfdescriptorsES2015hasOwnes-shimselbflatttycomputed-typesECMAScript 6styleguidetelephonestringinternal slotes7rmdirECMAScript 2015ES2023fullwidthparse.envawesomesaucebufferES2021fast-copyintrinsiczxES2022chaiFloat32ArraybrowserBigUint64ArrayWebSocketchromefixed-widthkeyframerhelperstreamsPromiseshebangdotenvredactMaptslibscheme-validationReactiveXdeep-copytoStringTagUint16ArraytakesetterassignvaluesfastregexpjoiasyncInt8ArraysymlinksimportexportcheckserializerserializationRegExp#flagsbusypropES2018proxyHyBiperformancelaunchinternalerrorfastcopyglaciergesturesBigInt64ArrayendpointsortedFunction.prototype.nameglobsnsregular expressionsArrayBuffer.prototype.slicemoduleObject.keysestreedeep-clonepyyamlremove__proto__cloudwatchoffsetcore-jsamazonstreams2stablecommand-lineECMAScript 2023propertyavafigletsubprocesstyped arraysafeECMAScript 2017objStyleSheetxdg-openpersistenttypedarraysmonorepowebsitedynamodbbyteLengthreadenvironmentautoprefixerpruneparsingcode pointsimmerregular expressioncontainsqueryvalidtoArrayCSSrm -rfURLprotoenvironmentsRFC-6455configurablewafjapaneseformathasOwnPropertyiambuffersiteratorcoerciblefile systemtrimnegative zero
2.2.8

7 days ago

2.2.5

10 days ago

2.2.4

11 days ago

2.2.7

8 days ago

2.2.6

9 days ago

2.1.4

12 days ago

2.1.3

13 days ago

2.1.2

14 days ago

2.1.1

15 days ago

1.1.1

16 days ago

1.0.1

17 days ago

1.0.0

17 days ago