aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortaehoon <th.dev91@gmail.com>2019-07-24 22:42:06 -0400
committertaehoon <th.dev91@gmail.com>2019-07-24 22:42:06 -0400
commit53c9517a4aeae1158a95e3b9c6d6d89e3a7e0ee9 (patch)
tree15de4433babb6b3ccef8ee248086e97fca8c50df
parent0f8ace483649c1da66a1270373a3b95683ff9a0b (diff)
use array.includes instead of array.indexOf
-rw-r--r--src/components/timeline/timeline.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/timeline/timeline.js b/src/components/timeline/timeline.js
index b1413591..a5c6418b 100644
--- a/src/components/timeline/timeline.js
+++ b/src/components/timeline/timeline.js
@@ -46,7 +46,7 @@ const Timeline = {
const result = {}
if (this.pinnedStatusIds && this.pinnedStatusIds.length > 0) {
for (let status of this.timeline.visibleStatuses) {
- if (this.pinnedStatusIds.indexOf(status.id) === -1) {
+ if (!this.pinnedStatusIds.includes(status.id)) {
break
}
result[status.id] = true