minor fixes
This commit is contained in:
parent
8752573cf3
commit
76656bdd15
1 changed files with 1 additions and 1 deletions
|
@ -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])
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue