FIX: revert to using _.each (#6683)

FIX: revert to using _.each (#6683)

Should be replaced with Object.keys variation when reproducible

From ca84c06c59daa6488b8300a22fc41dd4ecabe483 Mon Sep 17 00:00:00 2001
From: Joffrey JAFFEUX <j.jaffeux@gmail.com>
Date: Tue, 27 Nov 2018 15:55:56 +0100
Subject: [PATCH] FIX: revert to using _.each (#6683)

Should be replaced with Object.keys variation when reproducible

diff --git a/app/assets/javascripts/discourse/models/topic-tracking-state.js.es6 b/app/assets/javascripts/discourse/models/topic-tracking-state.js.es6
index 70ed88d..7cee0c8 100644
--- a/app/assets/javascripts/discourse/models/topic-tracking-state.js.es6
+++ b/app/assets/javascripts/discourse/models/topic-tracking-state.js.es6
@@ -373,7 +373,7 @@ const TopicTrackingState = Discourse.Model.extend({
 
   countCategory(category_id) {
     let sum = 0;
-    this.states.forEach(topic => {
+    _.each(this.states, topic => {
       if (topic.category_id === category_id && !topic.deleted) {
         sum +=
           topic.last_read_post_number === null ||

GitHub