SOURCE

Function.prototype.myApply = function (context, args = []) {
    context.fn = this
    let res = context.fn(...args)
    delete context.fn
    return res
}

console 命令行工具 X clear

                    
>
console