lib/require.js
function each(object, callback) {
		if (!object) { return true; }
		if (object.forEach) { return object.forEach(callback); }
		if (object instanceof Array) {
			var	length	= array ? array.length : 0;
			for(var index = 0; index < length; index++) {
				callback(array[index], index);
			}
		}else{
			for(var key in object) {
				if (!object.hasOwnProperty(key)) { continue; }
				callback(object[key], key);
			}
		}
		return false;
	}
function each(object, callback) {
		if (!object) { return true; }
		if (object.forEach) { return object.forEach(callback); }
		if (object instanceof Array) {
			var	length	= array ? array.length : 0;
			for(var index = 0; index < length; index++) {
				callback(array[index], index);
			}
		}else{
			for(var key in object) {
				if (!object.hasOwnProperty(key)) { continue; }
				callback(object[key], key);
			}
		}
		return false;
	}
function each ( object , callback ) { if ( ! object ) { return true ; } if ( object . forEach ) { return object . forEach ( callback ) ; } if ( object instanceof Array ) { var length = array ? array . length : 0 ; for ( var index = 0 ; index < length ; index ++ ) { callback ( array [ index ] , index ) ; } } else { for ( var key in object ) { if ( ! object . hasOwnProperty ( key ) ) { continue ; } callback ( object [ key ] , key ) ; } } return false ; }
Generic iterator.  Iterate over array elements, or object properties, invoking the `callback` specified on each item, using `Array.prototype.forEach` when available, or a polyfill, when not.
Generic iterator . Iterate over array elements or object properties invoking the callback specified on each item using Array . prototype . forEach when available or a polyfill when not .