Commit 53c9517a authored by Tae Hoon's avatar Tae Hoon

use array.includes instead of array.indexOf

parent 0f8ace48
...@@ -46,7 +46,7 @@ const Timeline = { ...@@ -46,7 +46,7 @@ const Timeline = {
const result = {} const result = {}
if (this.pinnedStatusIds && this.pinnedStatusIds.length > 0) { if (this.pinnedStatusIds && this.pinnedStatusIds.length > 0) {
for (let status of this.timeline.visibleStatuses) { for (let status of this.timeline.visibleStatuses) {
if (this.pinnedStatusIds.indexOf(status.id) === -1) { if (!this.pinnedStatusIds.includes(status.id)) {
break break
} }
result[status.id] = true result[status.id] = true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment