Commit 8930fb42 authored by Jose Vargas's avatar Jose Vargas

Replace underscore for lodash in emoji

parent ed76ea7d
import _ from 'underscore'; import { uniq } from 'lodash';
import emojiMap from 'emojis/digests.json'; import emojiMap from 'emojis/digests.json';
import emojiAliases from 'emojis/aliases.json'; import emojiAliases from 'emojis/aliases.json';
...@@ -18,7 +18,7 @@ export function filterEmojiNames(filter) { ...@@ -18,7 +18,7 @@ export function filterEmojiNames(filter) {
} }
export function filterEmojiNamesByAlias(filter) { export function filterEmojiNamesByAlias(filter) {
return _.uniq(filterEmojiNames(filter).map(name => normalizeEmojiName(name))); return uniq(filterEmojiNames(filter).map(name => normalizeEmojiName(name)));
} }
let emojiCategoryMap; let emojiCategoryMap;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment