6.9.96 • Published 11 months ago

@hishprorg/itaque-aliquid-repudiandae v6.9.96

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months 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
5.9.86

11 months ago

5.9.82

11 months ago

5.9.83

11 months ago

5.9.84

11 months ago

5.9.85

11 months ago

5.9.81

11 months ago

3.6.48

1 year ago

3.4.25

1 year ago

3.6.47

1 year ago

3.4.26

1 year ago

3.6.46

1 year ago

3.4.27

1 year ago

3.6.45

1 year ago

3.4.28

1 year ago

3.6.44

1 year ago

3.4.29

1 year ago

3.6.43

1 year ago

3.6.42

1 year ago

3.6.41

1 year ago

4.8.81

11 months ago

4.8.80

11 months ago

3.4.20

1 year ago

3.4.21

1 year ago

3.4.22

1 year ago

3.4.23

1 year ago

3.6.49

1 year ago

3.4.24

1 year ago

3.6.40

1 year ago

3.4.36

1 year ago

3.4.37

1 year ago

3.4.38

1 year ago

3.2.15

1 year ago

3.2.14

1 year ago

5.8.81

11 months ago

3.6.55

1 year ago

3.2.17

1 year ago

3.6.54

1 year ago

3.2.16

1 year ago

3.6.53

1 year ago

3.2.19

1 year ago

3.6.52

1 year ago

3.2.18

1 year ago

3.4.30

1 year ago

3.4.31

1 year ago

3.4.32

1 year ago

3.4.33

1 year ago

3.4.34

1 year ago

3.4.35

1 year ago

4.8.78

12 months ago

4.8.79

12 months ago

3.6.51

1 year ago

3.6.50

1 year ago

3.7.77

12 months ago

3.7.78

12 months ago

3.7.75

12 months ago

3.7.76

12 months ago

6.9.93

11 months ago

6.9.92

11 months ago

6.9.91

11 months ago

6.9.90

11 months ago

2.2.13

1 year ago

2.2.14

1 year ago

2.2.11

1 year ago

2.2.12

1 year ago

3.7.73

12 months ago

3.7.74

12 months ago

2.2.10

1 year ago

3.7.71

12 months ago

3.7.72

12 months ago

6.9.96

11 months ago

3.7.70

12 months ago

6.9.95

11 months ago

6.9.94

11 months ago

3.4.19

1 year ago

6.9.89

11 months ago

6.9.88

11 months ago

6.9.87

11 months ago

6.9.86

11 months ago

3.7.59

1 year ago

3.7.57

1 year ago

3.7.58

1 year ago

3.7.55

1 year ago

3.7.56

1 year ago

3.3.19

1 year ago

3.5.39

1 year ago

3.5.38

1 year ago

4.7.78

12 months ago

3.7.68

12 months ago

3.7.69

12 months ago

3.7.66

12 months ago

3.7.67

12 months ago

3.7.64

12 months ago

3.7.65

12 months ago

3.5.40

1 year ago

2.2.9

1 year ago

3.7.62

12 months ago

3.7.63

12 months ago

3.7.60

1 year ago

3.7.61

1 year ago

2.2.8

1 year ago

2.2.5

1 year ago

2.2.4

1 year ago

2.2.7

1 year ago

2.2.6

1 year ago

2.1.4

1 year ago

2.1.3

1 year ago

2.1.2

1 year ago

2.1.1

1 year ago

1.1.1

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago