While working on another problem, I created this fiddle:
http://jsfiddle.net/tr2by/
function foo() { // console.log(_.isBoolean(this)); conso
Javascript boxes the this argument provided to call and apply in non-strict mode. From MDN:
this
call
apply
if the method is a function in non-strict mode code, null and undefined will be replaced with the global object, and primitive values will be boxed.
null
undefined