diff options
| author | taehoon <th.dev91@gmail.com> | 2019-07-24 22:42:06 -0400 |
|---|---|---|
| committer | taehoon <th.dev91@gmail.com> | 2019-07-24 22:42:06 -0400 |
| commit | 53c9517a4aeae1158a95e3b9c6d6d89e3a7e0ee9 (patch) | |
| tree | 15de4433babb6b3ccef8ee248086e97fca8c50df /src | |
| parent | 0f8ace483649c1da66a1270373a3b95683ff9a0b (diff) | |
use array.includes instead of array.indexOf
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/timeline/timeline.js | 2 |
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 |
