[object Object] Things You Didn't Know About valueOf

added by bpwndaddy
7/20/2015 3:14:40 PM

441 Views

Okay, fine. That title is horrible. But we're all competing with BuzzFeed for readers now, and I needed something catchy, so here we are. Right, then. So, what is Object#valueOf and why should you care? More or less, it's a method that JavaScript calls automatically any time it sees an object in a situation where a primitive value is expected.


0 comments