Remove lodash from plugin (#36)

Remove lodash from plugin (#36)

diff --git a/assets/javascripts/discourse/controllers/admin-plugins-patreon.js.es6 b/assets/javascripts/discourse/controllers/admin-plugins-patreon.js.es6
index f5bd737..9171e22 100644
--- a/assets/javascripts/discourse/controllers/admin-plugins-patreon.js.es6
+++ b/assets/javascripts/discourse/controllers/admin-plugins-patreon.js.es6
@@ -12,9 +12,9 @@ export default Ember.Controller.extend({
 
   @computed("rewards")
   rewardsNames() {
-    return _.filter(this.rewards, (r) => r.id >= 0).map((r) =>
-      this.prettyPrintReward(r)
-    );
+    return this.rewards
+      .filter((r) => r.id >= 0)
+      .map((r) => this.prettyPrintReward(r));
   },
 
   editing: FilterRule.create({ group_id: null }),
@@ -30,9 +30,11 @@ export default Ember.Controller.extend({
       );
       rule.set(
         "rewards_ids",
-        _.filter(this.rewards, (v) =>
-          rule.get("reward_list").includes(this.prettyPrintReward(v))
-        ).map((r) => r.id)
+        this.rewards
+          .filter((v) =>
+            rule.get("reward_list").includes(this.prettyPrintReward(v))
+          )
+          .map((r) => r.id)
       );
 
       ajax("/patreon/list.json", {
diff --git a/assets/javascripts/discourse/routes/admin-plugins-patreon.js.es6 b/assets/javascripts/discourse/routes/admin-plugins-patreon.js.es6
index d0f3d9f..fb2ea77 100644
--- a/assets/javascripts/discourse/routes/admin-plugins-patreon.js.es6
+++ b/assets/javascripts/discourse/routes/admin-plugins-patreon.js.es6
@@ -29,13 +29,13 @@ export default DiscourseRoute.extend({
   setupController: function (controller, model) {
     const rewards = model.rewards;
     const groups = model.groups;
-    const filtersArray = _.map(model.filters, (v, k) => {
+    const filtersArray = model.filters.map((v, k) => {
       const rewardsNames = v.map((r) =>
         rewards[r]
           ? ` $${rewards[r].amount_cents / 100} - ${rewards[r].title}`
           : ""
       );
-      const group = _.find(groups, (g) => g.id === parseInt(k, 10));
+      const group = groups.find((g) => g.id === parseInt(k, 10));
 
       return FilterRule.create({
         group: group.name,

GitHub sha: f17683a2

This commit appears in #36 which was approved by eviltrout and vinothkannans. It was merged by vinothkannans.