function binded(bindedVal , el, i ,arr){
console.log(bindedVal , el, i ,arr)
}
//const newBind = binded.bind(null,"Avitus")
[1,2,3].forEach(binded.bind(null,"Avitus"))
const newBind = binded.bind(null,"Avitus")
[1,2,3].forEach(newBind)
function binded(bindedVal , el, i ,arr){
console.log(bindedVal , el, i ,arr)
}
[1,2,3].forEach(binded.bind(null,"Avitus"));
const newBind = binded.bind(null,"Avitus");
[1,2,3].forEach(newBind);
"Avitus", 2, 1, [1, 2, 3]
"Avitus", 3, 2, [1, 2, 3]
"Avitus", 1, 0, [1, 2, 3]
"Avitus", 2, 1, [1, 2, 3]
"Avitus", 3, 2, [1, 2, 3]