Basic coercion of primitives

Nothing special here, but still worth reviewing, and with a few explanations:

Number (e.g. double): +arg
Int32: ~~arg or arg|0
Uint32: arg >>> 0
String: ''+arg
Boolean: !!arg


Sources:
Trevor Norris, Introduction to the three key areas of performance