# All files / src/utils formatIncrementerValue.js

50% Statements 1/2
0% Branches 0/2
0% Functions 0/1
50% Lines 1/2

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    171x

     const lookup = {
      5: '5th',
      4: '4th',
      3: '3rd',
      2: '2nd',
      1: '1st',
      '-1': 'last',
      '-2': '2nd to last',
      '-3': '3rd to last',
      '-4': '4th to last',
      '-5': '5th to last',
    };

    export default function formatIncrementerValue(val) {
      return lookup[val] || val;
    }