There is an object in Java that comes from javafx.util library. You can use it to return 2 value as method return value. I wonder if there is an equivalent Object in Javascript. I can use regular Map() object for my purpose but I would like to know if there is something special for this purpose in Javascript too as it exists in Java.