7.10.93 • Published 12 months ago

@diotoborg/eum-deleniti-tempora v7.10.93

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

12 months ago

7.10.93

12 months ago

7.10.91

12 months ago

7.10.90

1 year ago

7.10.89

1 year ago

7.10.88

1 year ago

7.10.87

1 year ago

7.10.86

1 year ago

7.10.85

1 year ago

7.10.84

1 year ago

7.10.83

1 year ago

6.10.83

1 year ago

6.10.82

1 year ago

6.10.81

1 year ago

6.10.80

1 year ago

6.10.79

1 year ago

6.10.78

1 year ago

6.10.77

1 year ago

6.10.76

1 year ago

6.10.75

1 year ago

6.10.74

1 year ago

6.10.73

1 year ago

5.10.73

1 year ago

5.10.72

1 year ago

5.10.71

1 year ago

5.10.70

1 year ago

5.10.69

1 year ago

5.10.68

1 year ago

5.10.67

1 year ago

5.10.66

1 year ago

4.10.66

1 year ago

3.10.66

1 year ago

3.10.65

1 year ago

3.10.64

1 year ago

3.10.63

1 year ago

3.10.62

1 year ago

3.10.61

1 year ago

3.10.60

1 year ago

3.10.59

1 year ago

3.10.58

1 year ago

3.10.57

1 year ago

3.10.56

1 year ago

3.10.55

1 year ago

3.10.54

1 year ago

3.10.53

1 year ago

3.10.52

1 year ago

3.10.51

1 year ago

3.10.50

1 year ago

3.9.50

1 year ago

3.9.49

1 year ago

3.9.48

1 year ago

2.9.48

1 year ago

2.8.48

1 year ago

2.8.47

1 year ago

2.8.46

1 year ago

2.7.46

1 year ago

2.6.46

1 year ago

2.5.46

1 year ago

2.5.45

1 year ago

2.5.44

1 year ago

2.5.43

1 year ago

2.5.42

1 year ago

2.5.41

1 year ago

2.5.40

1 year ago

2.4.40

1 year ago

2.4.39

1 year ago

1.4.39

1 year ago

1.4.38

1 year ago

1.4.37

1 year ago

1.4.36

1 year ago

1.3.36

1 year 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