Is it possible to extract an Object out of a Function with JavaScript?
The function I received inside of an Object:
function item(){ let product = { name: name, price: price } }
I want to extract the Object: product out of that function. Caveat: The function may not be changed.
Extracting the Object product