function currentStepNumberInProgression(progression, dimensions) {
  for (let i = 0; i < progression.length; i++) {
    const step = progression[i];
    if (step.matchesDimensions(dimensions)) {
      return i;
    }
  }
  return -1;
}
/**
 * Return index of the current step that in `progression` that matches dimensions, otherwise return -1;
 */
Return index of the current step that in `progression` that matches dimensions, otherwise return -1.
Return index of the current step that in ` progression ` that matches dimensions otherwise return - 1 .
function currentStepNumberInProgression(progression, dimensions) {
  for (let i = 0; i < progression.length; i++) {
    const step = progression[i];
    if (step.matchesDimensions(dimensions)) {
      return i;
    }
  }
  return -1;
}
function currentStepNumberInProgression ( progression , dimensions ) { for ( let i = 0 ; i < progression . length ; i ++ ) { const step = progression [ i ] ; if ( step . matchesDimensions ( dimensions ) ) { return i ; } } return - 1 ; }
Return index of the current step that in `progression` that matches dimensions, otherwise return -1;
Return index of the current step that in ` progression ` that matches dimensions otherwise return - 1 ;