А
Size: a a a
А
DТ
S
var f = function(r) {Подскажите почему в одном случае выводит локальный this в другом глобальный?
r.apply({a:1});
}
var c = function() {
console.log(this);
};
new Promise(f).then(c);// Object [global] {}
f(c);// { a: 1 }
S
console.log(typeof []);// object
console.log(typeof new Array());// object
Правильно Array.isArray(arr), так как typeof на массив возвращает objectAA
мс
ВУ
RR
мс
RR
мс
мс
B
RR
мс
RR
мс
DA
RR
мс