moitorrijos - Overview

1

function toTitleCase(str: string | undefined | null) {

3

  const nonCapitalizedWords = ["a", "an", "the", "and", "but", "or", "nor", "for", "yet", "so", "as", "at", "by", "for", "in", "of", "on", "per", "to", "with"];

4

  const nonCapitalizedWordsSpanish = ["un", "una", "unos", "unas", "el", "la", "los", "las", "y", "pero", "o", "ni", "por", "aún", "así", "como", "en", "por", "para", "de", "del", "al", "con"];