textConvert
    Preparing search index...

    Function snakeCase

    • Convert a string from any convention to Snake Case convention.

      Parameters

      • text: string

        A string to be converted to Snake Case.

      Returns string

      A string in snake_case convention.

      snakeCase('hello world'); // 'hello_world'