Tema: Duda con IF
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/01/2009, 02:30
GastoNike
 
Fecha de Ingreso: marzo-2008
Mensajes: 166
Antigüedad: 17 años
Puntos: 5
Duda con IF

Estaba viendo el código para agregarle la función each al objeto Array

Código:
Array.prototype.each = function(fun)
{
	if(typeof fun != 'function') {
		throw new TypeError();
	}
	
	for(var i=0; i < this.length; i++) {
		if(i in this) {
			fun.call(arguments[1], i, this[i]);
		}
	}
	return this;
};
Pero no logro entender que comprueba este if
Código:
if(i in this) {
¿Alguien me puede ayudar?