valueOf < Object < JavaScript
The valueOf() method of an object that returns the primitive value of the specified object. Meant to be called internally by JavaScript.
const number = new Number(12);
console.log(number);
// 12
const numberValueOf = number.valueOf());
console.log(numberValueOf);
// 12