RichText/Archived/Rooster/Rooster.gcomp/Support/node_modules/roosterjs/dist/rooster-amd.js
/**
 * Move current snapshot with the given step if can move this step. Otherwise no action and return null
 * @param snapshots The snapshots data structure to move
 * @param step The step to move
 * @returns If can move with the given step, returns the snapshot after move, otherwise null
 */
Move current snapshot with the given step if can move this step. Otherwise no action and return null
@param snapshots The snapshots data structure to move
@param step The step to move
@returns If can move with the given step, returns the snapshot after move, otherwise null
Move current snapshot with the given step if can move this step . Otherwise no action and return null @param snapshots The snapshots data structure to move @param step The step to move @returns If can move with the given step returns the snapshot after move otherwise null
function moveCurrentSnapsnot(snapshots, step) {
    if (canMoveCurrentSnapshot_1.default(snapshots, step)) {
        snapshots.currentIndex += step;
        return snapshots.snapshots[snapshots.currentIndex];
    }
    else {
        return null;
    }
}
function moveCurrentSnapsnot ( snapshots , step ) { if ( canMoveCurrentSnapshot_1 . default ( snapshots , step ) ) { snapshots . currentIndex += step ; return snapshots . snapshots [ snapshots . currentIndex ] ; } else { return null ; } }
Move current snapshot with the given step if can move this step.
Move current snapshot with the given step if can move this step .