src/utils/index.js
function getTimeIncreaseFromName(methodName) {
  const matchNumbers = String(methodName).match(/_increaseTimeBy(\d+)/);

  if (matchNumbers !== null
    && typeof matchNumbers[1] === 'string') {
    return parseInt(matchNumbers[1], 10);
  }

  return 0;
}
function getTimeIncreaseFromName(methodName) {
  const matchNumbers = String(methodName).match(/_increaseTimeBy(\d+)/);

  if (matchNumbers !== null
    && typeof matchNumbers[1] === 'string') {
    return parseInt(matchNumbers[1], 10);
  }

  return 0;
}
function getTimeIncreaseFromName ( methodName ) { const matchNumbers = String ( methodName ) . match ( / _increaseTimeBy(\d+) / ) ; if ( matchNumbers !== null && typeof matchNumbers [ 1 ] === 'string' ) { return parseInt ( matchNumbers [ 1 ] , 10 ) ; } return 0 ; }
get time increase value from method name
get time increase value from method name