Array.prototype.joinOriginal = Array.prototype.join
Array.prototype.join = function() {
console.log(‘join called on’, this)
return this.joinOriginal(arguments)
}
let l=[123,234,345,445]
l.join(’;’)
when I am doing the above thing at console I am getting
an infinite output ex:
join called on 1[object Arguments]2[object Arguments]3[object Arguments]4
join called on 1[object Arguments]2[object Arguments]3[object Arguments]4
join called on 1[object Arguments]2[object Arguments]3[object Arguments]4
like this plz resolve it sir