imports/vx/both/code/util.js
/**
     * Given an input string an split character, return the last token
     * from the string.
     *
     * @param {string} input Input string.
     * @param {string} splitCharacter Character to use to split.
     * @param {string} offset Offset from last expressed as negative.
     * @return {string} Last token of the string.
     */
Given an input string an split character, return the last token
from the string.

@param {string} input Input string.
@param {string} splitCharacter Character to use to split.
@param {string} offset Offset from last expressed as negative.
@return {string} Last token of the string.
Given an input string an split character return the last token from the string . @param { string } input Input string . @param { string } splitCharacter Character to use to split . @param { string } offset Offset from last expressed as negative . @return { string } Last token of the string .
lastToken(input, splitCharacter, offset) {
        if (!input) {
            return input
        }
        offset = offset || -1
        const array = input.split(splitCharacter)
        return array[array.length + offset]
    }
lastToken ( input , splitCharacter , offset ) { if ( ! input ) { return input } offset = offset || - 1 const array = input . split ( splitCharacter ) return array [ array . length + offset ] }
Given an input string an split character, return the last token
 from the string.
Given an input string an split character return the last token from the string .