Skip to main content
Glama
isEmpty.js346 B
import assertString from './util/assertString'; import merge from './util/merge'; var default_is_empty_options = { ignore_whitespace: false }; export default function isEmpty(str, options) { assertString(str); options = merge(options, default_is_empty_options); return (options.ignore_whitespace ? str.trim().length : str.length) === 0; }

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/indrasishbanerjee/aem-mcp-server'

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