camelToKebabCase = (name, separator = '-') => {
  // @ts-ignore
  const toKebabCase = (letter, index) => {
    const isLowerCaseLetter = letter === letter.toLowerCase();
    return isLowerCaseLetter ? letter : `${index === 0 ? '' : separator}${letter.toLowerCase()}`;
  };
  return name.split('').map(toKebabCase).join('');
}
Convert `name` from camelCase to kebab-case
@example
  camelToKebabCase('exportedFileNames') == 'exported-file-names'
  camelToKebabCase('IngCalendar', '_') == 'ing_calendar'
@param {string} name
@param {string} [separator] ['-']
@returns {string}