function isBoundary(id, index) {
  return id.charAt(index) === SEPARATOR || index === id.length;
}
Checks if a character in the supplied ID is a separator or the end.

@param {string} id A React DOM ID.
@param {number} index Index of the character to check.
@return {boolean} True if the character is a separator or end of the ID.
@private