学习?学个屁 06c63c15cc 初始化提交 hai 11 meses
..
.github 06c63c15cc 初始化提交 hai 11 meses
test 06c63c15cc 初始化提交 hai 11 meses
.eslintrc 06c63c15cc 初始化提交 hai 11 meses
CHANGELOG.md 06c63c15cc 初始化提交 hai 11 meses
LICENSE 06c63c15cc 初始化提交 hai 11 meses
README.md 06c63c15cc 初始化提交 hai 11 meses
index.d.ts 06c63c15cc 初始化提交 hai 11 meses
index.js 06c63c15cc 初始化提交 hai 11 meses
package.json 06c63c15cc 初始化提交 hai 11 meses
tsconfig.json 06c63c15cc 初始化提交 hai 11 meses

README.md

possible-typed-array-names Version Badge

github actions coverage License Downloads

npm badge

A simple list of possible Typed Array names.

Example

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')
)));

Tests

Simply clone the repo, npm install, and run npm test

Security

Please email @ljharb or see https://tidelift.com/security if you have a potential security vulnerability to report.