Function underscore

  • Converts a camel case or space separated string of words to be underscore separated.

    Parameters

    • words: string

      a camel case or space separated string of words.

    Returns string

    a copy of words where each word is underscore separated.