rem: dojo.lang.map = function(/*Array*/arr, /*Object|Function*/obj, /*Function?*/unary_func){ var isString = dojo.lang.isString(arr); if(isString){  arr = arr.split(""); } if(dojo.lang.isFunction(obj)&&(!unary_func)){ unary_func = obj; obj = dj_global; }else if(dojo.lang.isFunction(obj) && unary_func){  var tmpObj = obj; obj = unary_func; unary_func = tmpObj; } if(Array.map){ var outArr = Array.map(arr, unary_func, obj); }else{ var outArr = []; for(var i=0;i<arr.length;++i){ outArr.push(unary_func.call(obj, arr[i])); 
add: map: function(/*Array*/arr, /*Object|Function*/obj, /*Function?*/unary_func){            var isString = dojo.lang.isString(arr); if(isString){  arr = arr.split(""); 
context: dojo.lang.map = function(/*Array*/arr, /*Object|Function*/obj, /*Function?*/unary_func){	var isString = dojo.lang.isString(arr);	if(isString){		// arr: String		arr = arr.split("");	}	if(dojo.lang.isFunction(obj)&&(!unary_func)){		unary_func = obj;		obj = dj_global;	}else if(dojo.lang.isFunction(obj) && unary_func){		// ff 1.5 compat		var tmpObj = obj;		obj = unary_func;		unary_func = tmpObj;	}	if(Array.map){	 	var outArr = Array.map(arr, unary_func, obj);	}else{		var outArr = [];		for(var i=0;i<arr.length;++i){			outArr.push(unary_func.call(obj, arr[i]));		}	}	if(isString) {		return outArr.join(""); // String	} else {		return outArr; // Array	}}
meta: 4707	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4707/50c3492c4c3c825dbd3401e134a19ed46799c456/array.js/clean/www/resources/dojo-ajax/src/lang/array.js