REFACTOR: Remove `_.union`

REFACTOR: Remove _.union

diff --git a/app/assets/javascripts/discourse/app/lib/uploads.js b/app/assets/javascripts/discourse/app/lib/uploads.js
index de2aa05..2e28e50 100644
--- a/app/assets/javascripts/discourse/app/lib/uploads.js
+++ b/app/assets/javascripts/discourse/app/lib/uploads.js
@@ -140,7 +140,7 @@ function imagesExtensions(staff, siteSettings) {
     const staffExts = staffExtensions(siteSettings).filter(ext =>
       IMAGES_EXTENSIONS_REGEX.test(ext)
     );
-    exts = _.union(exts, staffExts);
+    exts = exts.concat(staffExts);
   }
   return exts;
 }
diff --git a/app/assets/javascripts/pretty-text/addon/emoji.js b/app/assets/javascripts/pretty-text/addon/emoji.js
index 2264d97..8670107 100644
--- a/app/assets/javascripts/pretty-text/addon/emoji.js
+++ b/app/assets/javascripts/pretty-text/addon/emoji.js
@@ -215,7 +215,11 @@ export function emojiSearch(term, options) {
 
   toSearch =
     toSearch ||
-    _.union(_.keys(emojiHash), _.keys(extendedEmoji), _.keys(aliasHash)).sort();
+    [
+      ...Object.keys(emojiHash),
+      ...Object.keys(extendedEmoji),
+      ...Object.keys(aliasHash)
+    ].sort();
 
   const results = [];
 

GitHub sha: 0b098566

This commit appears in #10566 which was merged by eviltrout.