src/dataStructures/doubleLinkedList.js
/**
     * Return null if the current item is null - should only happen in empty list
     * Otherwise returns an object with the value, and boolean for start and end of list
     */
Return null if the current item is null - should only happen in empty list
Otherwise returns an object with the value, and boolean for start and end of list
Return null if the current item is null - should only happen in empty list Otherwise returns an object with the value and boolean for start and end of list
currentValue() {
        if (!this.current) return null;
        let {value, next } =  this.current;
        return {value, end: this.current === this.tail, start: this.current === this.head}
    }
currentValue ( ) { if ( ! this . current ) return null ; let { value , next } = this . current ; return { value , end : this . current === this . tail , start : this . current === this . head } }
Return null if the current item is null - should only happen in empty list
 Otherwise returns an object with the value, and boolean for start and end of list
Return null if the current item is null - should only happen in empty list Otherwise returns an object with the value and boolean for start and end of list