How does the function arrow understands which specific object i am referring too?

I completed the challenge but i mainly did while copying the description instructions and i don’t feel that i get it right.How my arrow function understands which object’s min and max property should take?Lets say that there was another object in the code with another name which also had a mix and a max property.Which objects max and min my arrow would take if i wrote the syntax as below.(The only thing i guess is that i would not use this syntax in this occasion but what happens if you have many lines of code and you forget about it?)
Thanks for any help you will provide!

const stats = {
max: 56.78,
standard_deviation: 4.34,
median: 34.54,
mode: 23.87,
min: -0.75,
average: 35.85
};

const half = ({max,min}) => (max + min) / 2.0;

This is function declaration, you don’t actually run it here. You’re going to call it later, like so:

half(stats);

passing stats object that will be destructured like this: { max, min } on the run time

Aw shit,go it!I feel so dumb :smiley: Thanks man