code: function startsWith (haystack, needle, startPosition) {
      startPosition = startPosition || 0;
      return haystack.lastIndexOf(needle, startPosition) === startPosition;
    }
docs: Determines whether a string begins with the characters of another string, returning true or false as appropriate.