Bolshakova Anna ab21a11190 lab | 2 weeks ago | |
---|---|---|
.. | ||
.github | 2 weeks ago | |
test | 2 weeks ago | |
.eslintrc | 2 weeks ago | |
CHANGELOG.md | 2 weeks ago | |
LICENSE | 2 weeks ago | |
README.md | 2 weeks ago | |
index.d.ts | 2 weeks ago | |
index.js | 2 weeks ago | |
package.json | 2 weeks ago | |
tsconfig.json | 2 weeks ago |
A simple list of possible Typed Array names.
const assert = require('assert');
const names = require('possible-typed-array-names');
assert(Array.isArray(names));
assert(names.every(name => (
typeof name === 'string'
&& typeof globalThis[name] === 'function'
&& globalThis[name].name === name
)));
Simply clone the repo, npm install
, and run npm test
Please email @ljharb or see https://tidelift.com/security if you have a potential security vulnerability to report.