var f = function(o){ return this+":"+o+"::"+(typeof this)+":"+(typeof o) };
f.call("2", "2");
// "2:2::object:string"
var f = function(o){ return this+":"+(typeof this)+":"+(typeof o); };
var x = [1,/foo/,"bar",function(){},true,[],{}];
for (var i=0;i<x.length;++i) console.log(f.call(x[i],x[i]));
// "1:object:number"
// "/foo/:object:object"
// "bar:object:string"
// "function() {\n}:function:function"
// "true:object:boolean"
// ":object:object"
// "[object Object]:object:object"
Veo los mismos resultados en Chrome, Firefox y Safari, así que supongo que es por the spec, pero ... ¿por qué? ¿Y en qué parte de la especificación se define esto? ¿Y por qué no para las funciones?`¿Por qué typeof this` "objeto" de retorno?
wow, nunca sabía eso. ahora me pregunto por qué es eso también! – Matt