src/ExCommandHistory.js
/**
     * Add an ExCommand to history (prepend), reset history position, store history
     * @param {String} command ExCommand string to store in history
     */
Add an ExCommand to history (prepend), reset history position, store history
@param {String} command ExCommand string to store in history
Add an ExCommand to history ( prepend ) reset history position store history @param { String } command ExCommand string to store in history
function add(command) {
        var index = $.inArray(command, commandHistory);
        if (index >= 0) {
            commandHistory.splice(index, 1);
        }
        commandHistory.unshift(command);
        historyPosition = -1;
        persistHistory();
    }
function add ( command ) { var index = $ . inArray ( command , commandHistory ) ; if ( index >= 0 ) { commandHistory . splice ( index , 1 ) ; } commandHistory . unshift ( command ) ; historyPosition = - 1 ; persistHistory ( ) ; }
Add an ExCommand to history (prepend), reset history position, store history
 @param {String} command ExCommand string to store in history
Add an ExCommand to history ( prepend ) reset history position store history @param { String } command ExCommand string to store in history