fromArray(array) {
        for (let idx = 0, len = array.length; idx < len; idx++) {
            this.push(array[idx]);
        }
    }
/**
     * Fills the queue with items from an array
     * For use in the constructor
     * @param array
     * @private
     */
Fills the queue with items from an array
For use in the constructor
@param array
@private
Fills the queue with items from an array For use in the constructor @param array @private
fromArray(array) {
        for (let idx = 0, len = array.length; idx < len; idx++) {
            this.push(array[idx]);
        }
    }
fromArray ( array ) { for ( let idx = 0 , len = array . length ; idx < len ; idx ++ ) { this . push ( array [ idx ] ) ; } }
Fills the queue with items from an array
 For use in the constructor
 @param array
 @private
Fills the queue with items from an array For use in the constructor @param array @private