lib/require.js
function every(object, callback) {
		if (!object) { return true; }
		if (object.every) { return object.every(callback); }
		if (object instanceof Array) {
			var	length	= array ? array.length : 0;
			for(var index = 0; index < length; index++) {
				if (!callback(array[index], index)) { return false; }
			}
		}else{
			for(var key in object) {
				if (!object.hasOwnProperty(key)) { continue; }
				if (!callback(object[key], key)) { return false; }
			}
		}
		return true;
	}
function every(object, callback) {
		if (!object) { return true; }
		if (object.every) { return object.every(callback); }
		if (object instanceof Array) {
			var	length	= array ? array.length : 0;
			for(var index = 0; index < length; index++) {
				if (!callback(array[index], index)) { return false; }
			}
		}else{
			for(var key in object) {
				if (!object.hasOwnProperty(key)) { continue; }
				if (!callback(object[key], key)) { return false; }
			}
		}
		return true;
	}
function every ( object , callback ) { if ( ! object ) { return true ; } if ( object . every ) { return object . every ( callback ) ; } if ( object instanceof Array ) { var length = array ? array . length : 0 ; for ( var index = 0 ; index < length ; index ++ ) { if ( ! callback ( array [ index ] , index ) ) { return false ; } } } else { for ( var key in object ) { if ( ! object . hasOwnProperty ( key ) ) { continue ; } if ( ! callback ( object [ key ] , key ) ) { return false ; } } } return true ; }
Generic 'every' function.  Tolerant of null 'objects' and works on arrays or arbitrary objects.
Generic every function . Tolerant of null objects and works on arrays or arbitrary objects .