minor fixes

This commit is contained in:
Ilya Kantor 2021-06-27 15:25:01 +03:00
parent 8752573cf3
commit 76656bdd15

View file

@ -91,7 +91,7 @@ let prices = {
*!* *!*
let doublePrices = Object.fromEntries( let doublePrices = Object.fromEntries(
// convert prices to array, map key/value pairs into another pair // convert prices to array, map each key/value pair into another pair
// and then fromEntries gives back the object // and then fromEntries gives back the object
Object.entries(prices).map(entry => [entry[0], entry[1] * 2]) Object.entries(prices).map(entry => [entry[0], entry[1] * 2])
); );