0

How can in js the Key name 2 be changed to, for example, 5?

{ 1: `a`, 2: `b`, 3: `c` } =>   { 1: `a`, 5: `b`, 3: `c` },
const test = {
        ingredients: { 1: `a`, 2: `b`, 3: `c` },
    };
    console.log(test.ingredients);

OosoO
  • 1
  • 1

0 Answers0