Integer conversion with guarding
Ever wanted to convert a string to an integer while making sure that the result is zero when the string is empty. Well here is neat trick to do it in JavaScript. Warning: This works only for integers and I consider this code "too clever" and suggest you use more ...