lib/abaaso.js
function ( obj, arg ) {
		var nth = obj.length,
		    result;

		if ( arg === 0 ) {
			result = obj;
		}
		else {
			if ( arg < 0 ) {
				arg += nth;
			}
			else {
				arg--;
			}

			result = array.limit( obj, arg, nth );
			result = result.concat( array.limit( obj, 0, arg ) );
		}

		return result;
	}
function ( obj, arg ) {
		var nth = obj.length,
		    result;

		if ( arg === 0 ) {
			result = obj;
		}
		else {
			if ( arg < 0 ) {
				arg += nth;
			}
			else {
				arg--;
			}

			result = array.limit( obj, arg, nth );
			result = result.concat( array.limit( obj, 0, arg ) );
		}

		return result;
	}
function ( obj , arg ) { var nth = obj . length , result ; if ( arg === 0 ) { result = obj ; } else { if ( arg < 0 ) { arg += nth ; } else { arg -- ; } result = array . limit ( obj , arg , nth ) ; result = result . concat ( array . limit ( obj , 0 , arg ) ) ; } return result ; }
Returns new Array with `arg` moved to the first index

@method rotate
@param  {Array}  obj Array to rotate
@param  {Number} arg Index to become the first index, if negative the rotation is in the opposite direction
@return {Array}      Newly rotated Array
Returns new Array with arg moved to the first index