REFACTOR: Remove `_.omit`

REFACTOR: Remove _.omit

diff --git a/app/assets/javascripts/admin/models/email-log.js b/app/assets/javascripts/admin/models/email-log.js
index 1317df2..9e1f0f5 100644
--- a/app/assets/javascripts/admin/models/email-log.js
+++ b/app/assets/javascripts/admin/models/email-log.js
@@ -25,7 +25,7 @@ EmailLog.reopenClass({
     offset = offset || 0;
 
     const status = filter.status || "sent";
-    filter = _.omit(filter, "status");
+    delete filter.status;
 
     return ajax(`/admin/email/${status}.json?offset=${offset}`, {
       data: filter
diff --git a/app/assets/javascripts/admin/models/incoming-email.js b/app/assets/javascripts/admin/models/incoming-email.js
index 8d46429..a5054c5 100644
--- a/app/assets/javascripts/admin/models/incoming-email.js
+++ b/app/assets/javascripts/admin/models/incoming-email.js
@@ -28,7 +28,7 @@ IncomingEmail.reopenClass({
     offset = offset || 0;
 
     const status = filter.status || "received";
-    filter = _.omit(filter, "status");
+    delete filter.status;
 
     return ajax(`/admin/email/${status}.json?offset=${offset}`, {
       data: filter
diff --git a/app/assets/javascripts/discourse/app/routes/topic.js b/app/assets/javascripts/discourse/app/routes/topic.js
index ebaa384..d6c2c3d 100644
--- a/app/assets/javascripts/discourse/app/routes/topic.js
+++ b/app/assets/javascripts/discourse/app/routes/topic.js
@@ -272,10 +272,10 @@ const TopicRoute = DiscourseRoute.extend({
       this.setupParams(topic, queryParams);
       return topic;
     } else {
-      topic = this.store.createRecord(
-        "topic",
-        _.omit(params, "username_filters", "filter")
-      );
+      let props = Object.assign({}, params);
+      delete props.username_filters;
+      delete props.filter;
+      topic = this.store.createRecord("topic", props);
       return this.setupParams(topic, queryParams);
     }
   },

GitHub sha: 2a4dfa83

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