Ver originalString.prototype.buscar = function(que){ return { 'function' : que.test(this), 'string' : this.indexOf(que) > -1 }[typeof que];}