7.10.93 • Published 10 months ago

@diotoborg/eum-deleniti-tempora v7.10.93

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

@diotoborg/eum-deleniti-tempora 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/eum-deleniti-tempora');
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

transpilecss nestingselfshelles2016ajvmatchAllWeakSetcloudfrontassignstyled-componentscompilerdatastructurecolourECMAScript 6String.prototype.trimrulesArrayprocessless mixinsframerbcryptinspectlintFloat64Arrayclassnamesregular expressionlinuxpropertiesopensslArray.prototype.flatMapjavascriptvalidatorstylingescapebrowsercorereducehttpscachekeyES2021waitserializeUnderscoreignoreObject.definePropertybannerinstallersharedtypedgroupcommand-lineTypedArraycallboundrequire6to5zxawstypedarrayselectronrequestpinocallexitawesomesauceglobal this valuedependencieses-shimsomitcollection.es6parserchromiumpostcss-pluginsuperagentpositiveslotrfc9562descriptionidleslicespringpreserve-symlinkses7uploadconcatdirflattenMapRFC-6455sesspecstyleguidebootstrap csscryptodatatslibforEachsafeArrayBuffer#sliceArrayBufferlivees2017chromehardlinkscheckdefinePropertycodesnamesstreambundlergetPrototypeOfisqssortedInt8ArrayECMAScript 2023react-componentObservablexhrprogressjsdiffec2waapibddisConcatSpreadable256valuesnumberharmonydynamodbglobal objectforkstylesheetterminalphoneemiteventDispatcherSymbolconfigurablejestcertificatesquerystringsortCSSminimalgitignoredragtypesafetoStringTagchaitouchbyteLengthES2022jwtlengthstatelessArray.prototype.flatcss lesswritearraybuffersetterArrayBuffer.prototype.slicees2018logencryptiontrimregular-expressionsymlinksdependency managertraversereact-hookshookformutilsfunctionresolvewarningregularairbnbcreateiampathexecfileArray.prototype.containsqueueMicrotaskdropvalidationbufferpatchflagtransportJSON-Schemafast-copyagentnodetestfpECMAScript 2016removeesArray.prototype.flattenfigletsettingsmatchestddloggingtoSortedauthtypanionzodpropertyflatMapreplaydefineinvariantelb$.extendreadablegetintrinsicconstsyntaxmap-0hooksObject.isinternallesscssargvPushbinmatchasterisksObject.fromEntriesconsolergbexit-codeHyBiTypeBoxclassnameObject.getPrototypeOfformsBigUint64ArraykoreanyuptypeerrortypesclonejapaneseweaksetObject.assigndeepclonecallbindinternal slotcloudwatchmkdirES6writablea11ycall-bindnpmignorereuseequalfastifyconcatMaptsboundeveryl10nbindprotocol-buffersjsoneslintpluginglobalsruntimefpsvarsreadablestreammruelmobjpackage.jsonhigher-ordertoolkitstylessharedarraybufferreduxloadbalancing.envstoragegatewayRxdateapiECMAScriptfiletc39diffJSON@@toStringTagrfc4122simpledbsequencepush
7.10.92

10 months ago

7.10.93

10 months ago

7.10.91

10 months ago

7.10.90

10 months ago

7.10.89

10 months ago

7.10.88

10 months ago

7.10.87

10 months ago

7.10.86

10 months ago

7.10.85

10 months ago

7.10.84

10 months ago

7.10.83

10 months ago

6.10.83

10 months ago

6.10.82

10 months ago

6.10.81

10 months ago

6.10.80

10 months ago

6.10.79

10 months ago

6.10.78

10 months ago

6.10.77

10 months ago

6.10.76

10 months ago

6.10.75

10 months ago

6.10.74

10 months ago

6.10.73

11 months ago

5.10.73

11 months ago

5.10.72

11 months ago

5.10.71

11 months ago

5.10.70

11 months ago

5.10.69

11 months ago

5.10.68

11 months ago

5.10.67

11 months ago

5.10.66

11 months ago

4.10.66

11 months ago

3.10.66

11 months ago

3.10.65

11 months ago

3.10.64

11 months ago

3.10.63

11 months ago

3.10.62

11 months ago

3.10.61

11 months ago

3.10.60

11 months ago

3.10.59

11 months ago

3.10.58

11 months ago

3.10.57

11 months ago

3.10.56

11 months ago

3.10.55

11 months ago

3.10.54

11 months ago

3.10.53

11 months ago

3.10.52

11 months ago

3.10.51

11 months ago

3.10.50

11 months ago

3.9.50

11 months ago

3.9.49

11 months ago

3.9.48

11 months ago

2.9.48

12 months ago

2.8.48

12 months ago

2.8.47

12 months ago

2.8.46

12 months ago

2.7.46

12 months ago

2.6.46

12 months ago

2.5.46

12 months ago

2.5.45

12 months ago

2.5.44

12 months ago

2.5.43

12 months ago

2.5.42

12 months ago

2.5.41

12 months ago

2.5.40

12 months ago

2.4.40

12 months ago

2.4.39

12 months ago

1.4.39

12 months ago

1.4.38

12 months ago

1.4.37

12 months ago

1.4.36

12 months ago

1.3.36

12 months ago

1.3.35

1 year ago

1.3.34

1 year ago

1.3.33

1 year ago

1.3.32

1 year ago

1.3.31

1 year ago

1.3.30

1 year ago

1.3.29

1 year ago

1.2.29

1 year ago

1.2.28

1 year ago

1.2.27

1 year ago

1.2.26

1 year ago

1.2.25

1 year ago

1.1.25

1 year ago

1.1.24

1 year ago

1.1.23

1 year ago

1.1.22

1 year ago

1.1.21

1 year ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago