Ver Mensaje Individual
  #9 (permalink)  
Antiguo 14/05/2011, 18:21
Avatar de _cronos2
_cronos2
Colaborador
 
Fecha de Ingreso: junio-2010
Mensajes: 2.062
Antigüedad: 14 años, 8 meses
Puntos: 310
Respuesta: Existira esta funcion??

Entonces podría hacer algo como esto:
Código Javascript:
Ver original
  1. String.prototype.buscar = function(que){
  2.  return {
  3.   'function' : que.test(this),
  4.   'string' : this.indexOf(que) > -1
  5.  }[typeof que];
  6. }
Saludos (:
__________________
" Getting older’s not been on my plans
but it’s never late, it’s never late enough for me to stay. "
Cigarettes - Russian Red