hasStringPrefix = (string, prefixes) => {
  for (const prefix of prefixes) {
    if (string.startsWith(prefix)) {
      return true;
    }
  }
  return false;
}
Check if an ID starts with any one of a list of strings.

@param {string} string
@param {ReadonlyArray<string>} prefixes
@returns {boolean}