Wednesday, October 03, 2012

underscore.js - obj.length === +obj.length in javascript - Stack Overflow

underscore.js - obj.length === +obj.length in javascript - Stack Overflow: "It's another way of writing if (typeof obj.length == 'number'). Why they do it that way, it's anyone's guess. Probably trying to be clever at the expense of readability. Which is not too uncommon these days, unfortunately..."

'via Blog this'