Gathering detailed insights and metrics for @crabas0npm/facilis-accusantium-alias
Gathering detailed insights and metrics for @crabas0npm/facilis-accusantium-alias
npm install @crabas0npm/facilis-accusantium-alias
Typescript
Module System
Node Version
NPM Version
54.5
Supply Chain
48.1
Quality
75.5
Maintenance
100
Vulnerability
100
License
Cumulative downloads
Total Downloads
Last day
0%
3
Compared to previous day
Last week
0%
4
Compared to previous week
Last month
50%
6
Compared to previous month
Last year
0%
103
Compared to previous year
33
[![dependency status][5]][6] [![dev dependency status][7]][8]
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.
1var isTypedArray = require('@crabas0npm/facilis-accusantium-alias');
2var assert = require('assert');
3
4assert.equal(false, isTypedArray(undefined));
5assert.equal(false, isTypedArray(null));
6assert.equal(false, isTypedArray(false));
7assert.equal(false, isTypedArray(true));
8assert.equal(false, isTypedArray([]));
9assert.equal(false, isTypedArray({}));
10assert.equal(false, isTypedArray(/a/g));
11assert.equal(false, isTypedArray(new RegExp('a', 'g')));
12assert.equal(false, isTypedArray(new Date()));
13assert.equal(false, isTypedArray(42));
14assert.equal(false, isTypedArray(NaN));
15assert.equal(false, isTypedArray(Infinity));
16assert.equal(false, isTypedArray(new Number(42)));
17assert.equal(false, isTypedArray('foo'));
18assert.equal(false, isTypedArray(Object('foo')));
19assert.equal(false, isTypedArray(function () {}));
20assert.equal(false, isTypedArray(function* () {}));
21assert.equal(false, isTypedArray(x => x * x));
22assert.equal(false, isTypedArray([]));
23
24assert.ok(isTypedArray(new Int8Array()));
25assert.ok(isTypedArray(new Uint8Array()));
26assert.ok(isTypedArray(new Uint8ClampedArray()));
27assert.ok(isTypedArray(new Int16Array()));
28assert.ok(isTypedArray(new Uint16Array()));
29assert.ok(isTypedArray(new Int32Array()));
30assert.ok(isTypedArray(new Uint32Array()));
31assert.ok(isTypedArray(new Float32Array()));
32assert.ok(isTypedArray(new Float64Array()));
33assert.ok(isTypedArray(new BigInt64Array()));
34assert.ok(isTypedArray(new BigUint64Array()));
Simply clone the repo, npm install
, and run npm test
No vulnerabilities found.
No security vulnerabilities found.