Questions tagged [ecmascript-2019]

ES2019, the 10th edition of ECMAScript, introduces several new features such as Object.fromEntries, Array#flat, and Array#flatMap. In addition to these additions, there are also minor adjustments made to the language specification. This tag should only be used for questions directly related to the new functionalities or technical revisions implemented in ECMAScript 2019.

Change the output of Object.fromEntries

I've been working on updating the values of an object using the .fromEntries() method. The issue I am facing is that even though I am returning a modified Array of hours, when the function completes it reverts back to the original complete Array. If you h ...