JSPM

possible-typed-array-names

1.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 36144809
  • Score
    100M100P100Q367496F
  • License MIT

A simple list of possible Typed Array names.

Package Exports

  • possible-typed-array-names
  • possible-typed-array-names/package.json

Readme

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.