Function.prototype.mycall = function(context,...args){ context = context ?? window //obj.fn1 context.fnxxxx = this const r = context.fnxxxx delete context.fnxxxx return r }