code: function endsWithString(endingValue, valueToTest) {
    const position = valueToTest.length - endingValue.length;
    const lastIndexOfValue = valueToTest.lastIndexOf(endingValue);
  
    return !!~lastIndexOfValue && lastIndexOfValue === position;
  }
docs: @function endsWithString
  
  @param {string} endingValue the value that the collection should end with
  @param {string} valueToTest the value to test for ending with endingValue
  @returns {boolean} does valueToTest end with endingValue