-1

How do I remove an item from the orange frame?

obrazek

I tried

product.splice(product[0]["elements"][0], 1);

But not working.

Abhishek Gurjar
  • 7,426
  • 10
  • 37
  • 45
Tomasz
  • 27
  • 4
  • 2
    Possible duplicate of [Remove element from multidimensional array](https://stackoverflow.com/questions/10174750/remove-element-from-multidimensional-array) – Asif Raza Jun 03 '17 at 11:55
  • write your expected output and your current result. – Gahan Jun 03 '17 at 12:26

1 Answers1

1

Just remove element by using delete:

delete product[0]["elements"][0];
Asif Raza
  • 3,435
  • 2
  • 27
  • 43