Skip to main content
Glama
test.jsโ€ข354 B
import toNumber from "./strnum.js"; describe("Should convert all the valid numeric strings to number", () => { it("should return undefined, null, empty string, or non-numeric as it is", () => { // expect(toNumber("+ 90")).toEqual("+ 90"); // expect(toNumber("- 90")).toEqual("- 90"); expect(toNumber("-10E2")).toEqual(100); }); });

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/consigcody94/office-whisperer'

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