Array.prototype.reduce = function(callBack,prve){
for(let i=0;i
if(typeOf(prve) == 'undefined'){
prve = callBack(this[i],this[i+1],i+1,this)
i++
}else {
prve = callBack(prve,this[i],i,this)
}
}
return prve
}