Files
NapCatQQ/.pnpm-store/v3/files/76/f28bfdee45131d92552fc869265aec8aefea7dc3dcba9d28d1f1d90bbb9a877abbcfee64d0dc129cc28e9efd7bd418b4241f202d0c0019df24130549e846ba
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

18 lines
475 B
Plaintext

'use strict';
var possibleNames = require('possible-typed-array-names');
var g = typeof globalThis === 'undefined' ? global : globalThis;
/** @type {import('.')} */
module.exports = function availableTypedArrays() {
var /** @type {ReturnType<typeof availableTypedArrays>} */ out = [];
for (var i = 0; i < possibleNames.length; i++) {
if (typeof g[possibleNames[i]] === 'function') {
// @ts-expect-error
out[out.length] = possibleNames[i];
}
}
return out;
};