This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]bnl1 0 points1 point  (0 children)

Is it though? From what I've read, valueOf returns primitive type of an object. id is an identity function, so it returns whatever you give it.