Skip to content
Snippets Groups Projects
Commit 2c0b10b0 authored by syuilo's avatar syuilo
Browse files

refactor

parent 6c09361e
No related branches found
No related tags found
No related merge requests found
......@@ -30,10 +30,10 @@ for (let i = 0; i < emojilist.length; i++) {
export const emojiCharByCategory = _charGroupByCategory;
export function getEmojiName(char: string): string | undefined {
export function getEmojiName(char: string): string | null {
const idx = _indexByChar.get(char);
if (typeof idx === 'undefined') {
return undefined;
if (idx == null) {
return null;
} else {
return emojilist[idx].name;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment