nikoyee/TheScoop

Object.values

Opened this issue · 0 comments

(Simplify) Here is an opportunity to use Object.values, simply:

    articles: Object.values(database.articles)
        .filter(article => article)
        .sort((article1, article2) => article2.id - article1.id)