code: function(str, search, position) {
      var lastIndex;
      position = position || str.length;
      position = position - search.length;
      lastIndex = str.lastIndexOf(search);
      return lastIndex !== -1 && lastIndex === position;
    }
docs: /*
  `string.endsWith(search, [position])`
  -------------------------------------
  Determines whether a string ends with the characters of another string,
  returning true or false as appropriate.
  This method has been added to the ECMAScript 6 specification and its code
  was borrowed from [Mozilla](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith)