source/record/processActions.js
function trimActions(actions) {
  // TODO: maybe, instead of doing this, add a last screenshot here. It's
  // mostly due to mistakes
  var lastScreenshotIndex = _.findLastIndex(actions, function(a) {
    return a.action === consts.STEP_SCREENSHOT;
  });
  return actions.slice(0, lastScreenshotIndex + 1);
}
function trimActions(actions) {
  // TODO: maybe, instead of doing this, add a last screenshot here. It's
  // mostly due to mistakes
  var lastScreenshotIndex = _.findLastIndex(actions, function(a) {
    return a.action === consts.STEP_SCREENSHOT;
  });
  return actions.slice(0, lastScreenshotIndex + 1);
}
function trimActions ( actions ) { // TODO: maybe, instead of doing this, add a last screenshot here. It's // mostly due to mistakes var lastScreenshotIndex = _ . findLastIndex ( actions , function ( a ) { return a . action === consts . STEP_SCREENSHOT ; } ) ; return actions . slice ( 0 , lastScreenshotIndex + 1 ) ; }
every browser event happening after the last screenshot event is useless. Trim them
every browser event happening after the last screenshot event is useless . Trim them