Function formatStringList

  • Formats an array of strings into a list.

    Parameters

    • strings: string[]

    Returns string

    const authors = ["Sans3108", "urg"];
    console.log(formatStringList(authors)); // 'Sans3108 & urg'

    const authors = ["Sans3108", "urg", "Meloƞ"];
    console.log(formatStringList(authors)); // 'Sans3108, urg & Meloƞ'