Published Apr 22 2019
Called on an object instance, returns the primitive value of it.
const person = { name: 'Fred' }
person.valueOf() //{ name: 'Fred' }
This is normally only used internally by JavaScript, and rarely actually invoked in user code.
I wrote an entire book on this topic 👇
I also got a super cool course 👇
© 2023 Flavio Copes
using
Notion to Site
Interested in solopreneurship?