4.6 - How do I know which slider is calling a function? (JS)

Two sliders are using the same function on a GameObject. I want to assign the slider’s value to one of two variables in the function depending on which slider is currently being changed. Is there a way from inside that function to identify which slider is calling it?

(I’m using JavaScript.)

Add a slider parameter to the function, and have the sliders send themselves as that parameter.