|
|
hai 1 mes | |
|---|---|---|
| .. | ||
| .github | hai 1 mes | |
| test | hai 1 mes | |
| .eslintrc | hai 1 mes | |
| CHANGELOG.md | hai 1 mes | |
| LICENSE | hai 1 mes | |
| README.md | hai 1 mes | |
| index.d.ts | hai 1 mes | |
| index.js | hai 1 mes | |
| package.json | hai 1 mes | |
| tsconfig.json | hai 1 mes | |
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.