As_ Alexandre Morgaut pointed out, valueOf is sufficient and supported since the first version of JavaScript. If you don't know @@toPrimitive_, you still might want to_ check it out. What is a pure ...