Page MenuHomePhabricator

Use ES2017 (ES8) equivalent features to ES2016 throughout Codex codebase
Open, Needs TriagePublic

Description

Background

While the transition of the target requirement in T410482 seems to have worked flawlessly, there are code features with a cleaner and better equivalent in ES2017 not yet fully throughout the codebase

Goal

Make consistent use of ES2017 features.

Acceptance criteria for done

  • Replace for...in loops and Object.keys() patterns with ES2017's Object.entries()
  • Replace Object.keys().forEach() to Object.entries()

Event Timeline

Change #1225829 had a related patch set uploaded (by VolkerE; author: VolkerE):

[design/codex@main] [WIP] Transform to ES2017 features consistently across the codebase

https://gerrit.wikimedia.org/r/1225829

Volker_E renamed this task from Use ES2017 (ES8) equivalent features to ES2016 throught Codex codebase to Use ES2017 (ES8) equivalent features to ES2016 throughout Codex codebase.Thu, Apr 9, 12:04 AM
Volker_E moved this task from Backlog to Design Review on the Codex board.

Change #1225829 merged by jenkins-bot:

[design/codex@main] Transform to ES2017 features consistently across the codebase

https://gerrit.wikimedia.org/r/1225829