i am having a problem at the output of this code as i go live then there are some lines at the console
join called on (7) [‘fa’, ‘fab’, ‘fas’, ‘far’, ‘fal’, ‘fad’, ‘fak’]
app.js:15
join called on (7) [‘fa’, ‘fab’, ‘fas’, ‘far’, ‘fal’, ‘fad’, ‘fak’]
app.js:15
join called on (7) [‘fa’, ‘fab’, ‘fas’, ‘far’, ‘fal’, ‘fad’, ‘fak’]
app.js:15
join called on (7) [‘fa’, ‘fab’, ‘fas’, ‘far’, ‘fal’, ‘fad’, ‘fak’]
app.js:15
join called on (7) [‘fa’, ‘fab’, ‘fas’, ‘far’, ‘fal’, ‘fad’, ‘fak’]
app.js:15
join called on (7) [‘fa’, ‘fab’, ‘fas’, ‘far’, ‘fal’, ‘fad’, ‘fak’]
app.js:15
join called on (7) [‘fa’, ‘fab’, ‘fas’, ‘far’, ‘fal’, ‘fad’, ‘fak’]
when i intitalize the code it shows always same
here is the code :
Array.prototype.joinOriginal = Array.prototype.join
Array.prototype.join = function () {
console.log(‘join called on’, this)
return this.joinOriginal(…arguments)
}