Skip to main content
Glama
index.js•671 B
'use strict'; var callBound = require('call-bound'); /** @type {undefined | ((thisArg: SharedArrayBuffer) => number)} */ var $byteLength = callBound('SharedArrayBuffer.prototype.byteLength', true); /** @type {import('.')} */ module.exports = $byteLength ? function isSharedArrayBuffer(obj) { if (!obj || typeof obj !== 'object') { return false; } try { // @ts-expect-error TS can't figure out this closed-over variable is non-nullable, and it's fine that `obj` might not be a SAB $byteLength(obj); return true; } catch (e) { return false; } } : function isSharedArrayBuffer(_obj) { // eslint-disable-line no-unused-vars return false; };

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/guangxiangdebizi/PPT-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server