Helpers.Value

Methods

(static) next(value) → {string}

Calculate the next value for a string. 'a' becomes 'b'. 'A' becomes 'B'. 1 becomes 2, etc. If multiple character strings are passed, 'aa' would become 'bb'.

Parameters:
Name Type Description
value string | number

The string or number to convert.

Source:
Returns:
  • The formatted string
Type
string

(static) prev(value) → {string}

Calculate the prev value for a string. 'b' becomes 'a'. 'B' becomes 'A'. 2 becomes 1, 0 becomes 9, etc. If multiple character strings are passed, 'bb' would become 'aa'.

Parameters:
Name Type Description
value string | number

The string or number to convert.

Source:
Returns:
  • The formatted string
Type
string