I do not feel this is a duplicate. The only other answers are over five years old and am assuming methods have improved.
What is the proper way to find the minimum value in a named array. For example, if my array looks like this:
let drink_prices = [
{brandy:25, name: "brandy drink"},
{whiskey:20, name: "whiskey drink"},
{vodka:46, name: "vodka drink"}
];
How would I find the lowest price? I thought a funky for loop would do it, but wondered if there was a way to use Math.min() but didn't see a way for what I'm doing.
Advice?