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