MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / isEmoji

Function isEmoji

packages/core/utils/common.ts:182–186  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

180}
181
182export function isEmoji(value: string): boolean {
183 // TODO: In a future runtime update, we can switch to using Unicode Property Escapes:
184 // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Unicode_Property_Escapes
185 return emojiRegex(value).test(value);
186}

Calls 1

testMethod · 0.45

Tested by

no test coverage detected