Skip to main content
Glama
IsStrictlyEqual.js•526 B
'use strict'; var SameValueNonNumeric = require('./SameValueNonNumeric'); var Type = require('./Type'); var BigIntEqual = require('./BigInt/equal'); var NumberEqual = require('./Number/equal'); // https://262.ecma-international.org/13.0/#sec-isstrictlyequal module.exports = function IsStrictlyEqual(x, y) { if (Type(x) !== Type(y)) { return false; } if (typeof x === 'number' || typeof x === 'bigint') { return typeof x === 'number' ? NumberEqual(x, y) : BigIntEqual(x, y); } return SameValueNonNumeric(x, y); };

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