Arrays of objects can get complex, but we can simplify them by extracting only the object properties we need into a new array.
For this example, I will use an existing array of objects to create a new array, containing only the product ID's.
------------------------------------------------------------------------
Looking for a complete guide to JavaScript?
You can find my comprehensive course here with 50% off:
https://chrisdixon.gumroad.com/l/mode...
------------------------------------------------------------------------
You can also find a text-based version of this video here:
https://chrisdixon.dev/blog/2022-02-2...
Check my site for more content:
https://chrisdixon.dev/
------------------------------------------------------------------------