Mohammad Asif cf937194cb Removed un-waned things 1. | 5 months ago | |
---|---|---|
.. | ||
.github | 5 months ago | |
test | 5 months ago | |
.eslintrc | 5 months ago | |
.nycrc | 5 months ago | |
CHANGELOG.md | 5 months ago | |
LICENSE | 5 months ago | |
README.md | 5 months ago | |
index.d.ts | 5 months ago | |
index.js | 5 months ago | |
package.json | 5 months ago | |
tsconfig.json | 5 months ago |
Returns an array of Typed Array names that are available in the current environment.
var availableTypedArrays = require('available-typed-arrays');
var assert = require('assert');
assert.deepStrictEqual(
availableTypedArrays().sort(),
[
'Int8Array',
'Uint8Array',
'Uint8ClampedArray',
'Int16Array',
'Uint16Array',
'Int32Array',
'Uint32Array',
'Float32Array',
'Float64Array',
'BigInt64Array',
'BigUint64Array'
].sort()
);
Simply clone the repo, npm install
, and run npm test