const push = Array.prototype.push
Array.prototype.push = function (val) {
    console.log(val);
    push.call(this, val)
}