|
|
1 week ago | |
|---|---|---|
| .. | ||
| .github | 1 week ago | |
| test | 1 week ago | |
| .eslintrc | 1 week ago | |
| CHANGELOG.md | 1 week ago | |
| LICENSE | 1 week ago | |
| README.md | 1 week ago | |
| index.d.ts | 1 week ago | |
| index.js | 1 week ago | |
| package.json | 1 week ago | |
| tsconfig.json | 1 week 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
) || typeof globalThis[name] === 'undefined')
)));
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.