context: dojo.lang.find = function(	/*Array*/		array, 							/*Object*/		value,							/*Boolean?*/	identity,							/*Boolean?*/	findLast){	// summary:	Return the index of value in array, returning -1 if not found.	// identity: If true, matches with identity comparison (===).  	//					 If false, uses normal comparison (==).	// findLast: If true, returns index of last instance of value.		// examples:	//  find(array, value[, identity [findLast]]) // recommended 	//  find(value, array[, identity [findLast]]) // deprecated								// support both (array, value) and (value, array)	if(!dojo.lang.isArrayLike(array) && dojo.lang.isArrayLike(value)) {		dojo.deprecated('dojo.lang.find(value, array)', 'use dojo.lang.find(array, value) instead', "0.5");		var temp = array;		array = value;		value = temp;	}	var isString = dojo.lang.isString(array);	if(isString) { array = array.split(""); }	if(findLast) {		var step = -1;		var i = array.length - 1;		var end = -1;	} else {		var step = 1;		var i = 0;		var end = array.length;	}	if(identity){		while(i != end) {			if(array[i] === value){ return i; }			i += step;		}	}else{		while(i != end) {			if(array[i] == value){ return i; }			i += step;		}	}	return -1;	// number}
meta: 4707	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4707/50c3492c4c3c825dbd3401e134a19ed46799c456/dojo.js.uncompressed.js/buggy/www/resources/dojo-ajax/dojo.js.uncompressed.js