source/node/Workspace.js
function stripDestructiveCommands(history) {
    const destructiveSlugs = Object.keys(Inigo.Command)
        .map(key => Inigo.Command[key])
        .filter(command => command.d)
        .map(command => command.s);
    return history.filter(command => {
        return destructiveSlugs.indexOf(getCommandType(command)) < 0;
    });
}
function stripDestructiveCommands(history) {
    const destructiveSlugs = Object.keys(Inigo.Command)
        .map(key => Inigo.Command[key])
        .filter(command => command.d)
        .map(command => command.s);
    return history.filter(command => {
        return destructiveSlugs.indexOf(getCommandType(command)) < 0;
    });
}
function stripDestructiveCommands ( history ) { const destructiveSlugs = Object . keys ( Inigo . Command ) . map ( key => Inigo . Command [ key ] ) . filter ( command => command . d ) . map ( command => command . s ) ; return history . filter ( command => { return destructiveSlugs . indexOf ( getCommandType ( command ) ) < 0 ; } ) ; }
Strip destructive commands from a history collection
@param {Array.<String>} history The history
@returns {Array.<String>} The history minus any destructive commands
@private
@static
@memberof Workspace
Strip destructive commands from a history collection