5.9.96 • Published 1 year ago

@diotoborg/doloremque-tempore-harum v5.9.96

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

@diotoborg/doloremque-tempore-harum 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('@diotoborg/doloremque-tempore-harum');
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

handlerssnssymbolsbrowserfindLastsortedconsumeformsfunctionalfluxcloudsearchplugines2015findSymbolMicrosoftECMAScript 2015minimaljestdirectoryreact-testing-librarypasswordmatchAlli18nastopenssles2016animation0asyncmapspeedreduceArrayBuffer#sliceloggerhookformUint32ArrayReflect.getPrototypeOfincludesregular expressionescapesetImmediatesymlinkECMAScript 2020movegetshebangchannelES2022tslibstyled-componentsfrommake direslint6to5sigintinstallaccessibilityaccessorwindowsStyleSheetuploaddiffcommandflatMappureencryptioncall-bindinferencesyntaxtoSortedentriesunicodereact-componenterrores-shim APIcore-jswhichweaksetconfigequalparserreusefunctionstypeerrormergetesterhttpsacorntrimEndelmfixed-widthpatchstreambeanstalkselfECMAScriptInt8Arraycomparerfc4122pathmonorepoimportexportcensorqueueMicrotaskisFloat64ArraytypescripttddestreeprocessinstallerglobalsObject.entriesECMAScript 6fastcloneprotoclassesES2021call-boundObject.fromEntriescss-in-jsequalityInt16Arrayloadingexpressiondataruntimeliveeslintpluginpyyamldependency managerArray.prototype.findLastprototypebannerfantasy-landpostcss-pluginPushemrreducercharacterpostcssECMAScript 5authintrinsicstategesturescss lessformatgetintrinsicchromiumsharedarraybufferkeywaapistylesheetECMAScript 2022argvrfc9562matchfunctionbcryptvisualdeletemkdirsString.prototype.trimrandomhigher-orderexit-codeshamconcatMapcssReactiveX$.extendnpmdateebsttybundlerreactgraphqlprogresstoArrayexecuteprivatejsondotenvmodulesUnderscoreshrinkwrapUint8ClampedArraydom-testing-libraryprotocol-buffersexpressshimsameValueZeroObjectutilspreprocessorlinuxserializationelectronresolveESproxylesscsswritablexhrECMAScript 3Array.prototype.flatserializerstringifierquerystringajves5jscryptoajaxclassnameexecdatastructureAsyncIteratorvariableshardlinksdeepcloneutilitiesclass-validatorzodmkdirYAMLMapbrowserlistRxJSregular-expressioninbundlingmrunodejsremoveJSONimmutabletoolseffect-tsbddtouchJSON-Schemagdprgitignoreponyfilldynamodbnopebinaryes-abstractposeSetirqES2018curlsuperstructnodeObject.getPrototypeOftrimRightendertsflagsrulesESnextReactiveExtensionsObservablesbinarrayshelpersdeep-copyenvtoStringTagtoobjectwrite.gitignoreless cssperformanceArray.prototype.includeseventsbootstrap lessuuidtypesredactglobless mixinspopmotionless.jslruSymbol.toStringTagstructuredClonecontainssymlinksES2020valuesstylingecmascriptreadableindicatorhastermxtermpruneWeakSetfullgetoptpersistentstatelessstableRegExp.prototype.flagsIteratorURLSearchParamscallboundreadablestreamregexpvestECMAScript 2021joiStreamsconstefficientcodesendpointwhatwgasterisksterminalasciiconsoleoperating-systemchildinputArrayBuffercachees-shimscss nestingglaciersignalsubprocessTypeScriptArray.prototype.flattenexitrdsforkpushtostringtagchromeroutingassertstylescss variablefastcopymobilereplaydescriptorinternalmanagerhooksl10nsettings256schemedescriptionnegativebabel-corereact-hookses2017sequence@@toStringTagtoolkitfullwidthprefixtraverseflagquoteschemaURLdeep-clonetelephonemacosvalidationmakeamazonec2flatarraybuffercallbackiteratehashstringES2019helpercallbindfast-deep-copygetOwnPropertyDescriptores2018Int32Arraytacitreact posefilterWeakMapvariables in csspackage managereast-asian-widthes8Object.definePropertytypematchestypedarrayWebSocketcorenested cssdeepcopydescriptorsworkergradients cssobjectfastifyesscheme-validationreduxauthenticationvarsArray.prototype.findLastIndexloadbalancingobjtoReverseddayjsECMAScript 7syntaxerrorcloudwatchfunction.lengthreversecompile lesslibphonenumberignorecompilerinspectinternal slotRegExp#flagsuninstallrangeerrordrageventDispatcherutilspinnerspecFloat32Arraypnpm9has-ownvaluemulti-packagecertificateshttpmoduleproplastsigtermroute53promiseECMAScript 2016TypedArraytranspilerBigUint64ArraywgetdefinePropertyeslint-pluginhasOwnnameCSSjson-schema-validationArray.prototype.flatMapsharedweakmapbytedeepclonesqsworkspace:*queuebufferbyteLengthserializelessdirECMAScript 2019outputimmersimpledbcallprivate datathreepicomatchairbnbautoscalingFunction.prototype.nameidlefetchidentifiersjQueryfile systemlognativeramdaextraRxlintHyBibyteOffsetArrayBuffer.prototype.slicetypanionES3collectionrouteES8positivevalidateletSystem.globalprettyviewObject.istimeconfigurableES2015setcheckstatus-0recursivesafe
5.9.95

1 year ago

5.9.96

1 year ago

5.9.94

1 year ago

5.8.94

1 year ago

5.7.94

1 year ago

4.7.94

1 year ago

4.7.93

1 year ago

3.7.93

1 year ago

3.7.92

1 year ago

3.7.91

1 year ago

3.7.90

1 year ago

3.7.89

1 year ago

3.7.88

1 year ago

3.7.87

1 year ago

3.7.86

1 year ago

3.7.85

1 year ago

3.7.84

1 year ago

3.7.83

1 year ago

3.7.82

2 years ago

3.7.81

2 years ago

3.7.80

2 years ago

3.7.79

2 years ago

3.7.78

2 years ago

3.7.77

2 years ago

3.7.76

2 years ago

3.7.75

2 years ago

3.7.74

2 years ago

3.7.73

2 years ago

3.7.72

2 years ago

3.7.71

2 years ago

3.7.70

2 years ago

3.7.69

2 years ago

3.6.69

2 years ago

3.6.68

2 years ago

3.6.67

2 years ago

3.6.66

2 years ago

3.6.65

2 years ago

3.6.64

2 years ago

3.6.63

2 years ago

3.6.62

2 years ago

3.6.61

2 years ago

3.6.60

2 years ago

3.6.59

2 years ago

3.6.58

2 years ago

2.6.58

2 years ago

2.6.57

2 years ago

2.6.56

2 years ago

2.6.55

2 years ago

2.6.54

2 years ago

2.6.53

2 years ago

2.6.52

2 years ago

2.6.51

2 years ago

2.6.50

2 years ago

2.6.49

2 years ago

2.6.48

2 years ago

2.6.47

2 years ago

2.6.46

2 years ago

2.6.45

2 years ago

2.6.44

2 years ago

2.6.43

2 years ago

2.6.42

2 years ago

2.6.41

2 years ago

2.6.40

2 years ago

2.6.39

2 years ago

2.6.38

2 years ago

2.6.37

2 years ago

2.6.36

2 years ago

2.6.35

2 years ago

2.6.34

2 years ago

2.6.33

2 years ago

2.6.32

2 years ago

2.6.31

2 years ago

2.6.30

2 years ago

2.6.29

2 years ago

2.6.28

2 years ago

2.6.27

2 years ago

2.6.26

2 years ago

2.6.25

2 years ago

2.6.24

2 years ago

2.6.23

2 years ago

2.6.22

2 years ago

2.6.21

2 years ago

2.5.21

2 years ago

2.5.20

2 years ago

2.5.19

2 years ago

2.5.18

2 years ago

2.4.18

2 years ago

2.4.17

2 years ago

2.4.16

2 years ago

2.4.15

2 years ago

2.4.14

2 years ago

2.4.13

2 years ago

2.3.13

2 years ago

1.3.13

2 years ago

1.3.12

2 years ago

1.2.12

2 years ago

1.1.12

2 years ago

1.1.11

2 years ago

1.1.10

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago