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

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.