Retroactive/lib/data_structures/double_linked_list.js
function(index){
    
        //check for out-of-bounds values
        if (index > -1 && index < this._length){
            var current = this._head,
                i = 0;
                
            while(i++ < index){
                current = current.next;            
            }
        
            return current.data;
        } else {
            return null;
        }
    }
function(index){
    
        //check for out-of-bounds values
        if (index > -1 && index < this._length){
            var current = this._head,
                i = 0;
                
            while(i++ < index){
                current = current.next;            
            }
        
            return current.data;
        } else {
            return null;
        }
    }
function ( index ) { //check for out-of-bounds values if ( index > - 1 && index < this . _length ) { var current = this . _head , i = 0 ; while ( i ++ < index ) { current = current . next ; } return current . data ; } else { return null ; } }
Retrieves the data in the given position in the list.
@param {int} index The zero-based index of the item whose value
should be returned.
@return {variant} The value in the "data" portion of the given item
or null if the item doesn't exist.
@method item
Retrieves the data in the given position in the list .