Function.prototype.myBind = function(obj,...rest){
let that = this
let bound = function(...args){
let params = [...rest,...args]
that.apply(this.constructor === that ? this : obj,params)
}
bound.prototype = that.prototype
return bound
}