The Number valueOf() method
By Flavio Copes
Learn how the JavaScript Number valueOf() method returns the primitive number value wrapped inside a Number object, turning that object back into a number.
~~~
This method returns the number value of a Number object:
const age = new Number(36)
typeof age //object
age.valueOf() //36~~~
Related posts about js: