What does { ...obj1, obj2 } do exactly

toprimitive js
object to primitive conversion in javascript
integer equals vs
object to primitive conversion java
obj1 = obj2 in java
integer equals java
which function converts the string object “obj” to an integer value.
can't convert object to primitive value ie11