Р(
Size: a a a
Р(
Р(
G
Р(
G
e
const arr = new Array(1000).fill(0);
Array.prototype.yaSuperMan = function(cb){
let len = this.length;
while(len){
const el = cb(this[len - 1]);
len--;
}
}
arr.yaSuperMan(function yes(){
})
e
Р(
Р(
L4
[...arr].reverse().forEach();
либо с reverse (убрав ссылку), либо через циклР(
const arr = new Array(1000).fill(0);
Array.prototype.yaSuperMan = function(cb){
let len = this.length;
while(len){
const el = cb(this[len - 1]);
len--;
}
}
arr.yaSuperMan(function yes(){
})
e
Р(
Р(
R:
R:
R:
AP
R:
R: