=== comparison.
Properties
string
required
The normalized emoji name (e.g., “thumbs_up”)
Methods
toJSON()
Returns
string
toString()
Returns
stringDocumentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Immutable emoji value object with object identity.
=== comparison.
// Object identity comparison works
if (event.emoji === emoji.thumbs_up) {
console.log("User gave a thumbs up!");
}
// Works in template strings via toString()
await thread.post(`${emoji.thumbs_up} Great job!`);
toJSON(): string
string
toString(): string
stringWas this page helpful?