allBeforeLastN method

String allBeforeLastN(
  1. int n
)

Implementation

String allBeforeLastN(int n) => substring(0, length - n);