REFACTOR: Remove `_.intersection`

REFACTOR: Remove _.intersection

diff --git a/app/assets/javascripts/discourse/app/models/user.js b/app/assets/javascripts/discourse/app/models/user.js
index 44ad80f..297ad8b 100644
--- a/app/assets/javascripts/discourse/app/models/user.js
+++ b/app/assets/javascripts/discourse/app/models/user.js
@@ -290,7 +290,7 @@ const User = RestModel.extend({
     ];
 
     const data = this.getProperties(
-      fields ? _.intersection(userFields, fields) : userFields
+      userFields.filter(uf => !fields || fields.indexOf(uf) !== -1)
     );
 
     let userOptionFields = [
@@ -326,7 +326,9 @@ const User = RestModel.extend({
     ];
 
     if (fields) {
-      userOptionFields = _.intersection(userOptionFields, fields);
+      userOptionFields = userOptionFields.filter(
+        uo => fields.indexOf(uo) !== -1
+      );
     }
 
     userOptionFields.forEach(s => {

GitHub sha: c2cfa620

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