@pleisto/active-support
    Preparing search index...

    Variable snakeCaseConst

    snakeCase: (str: string, options?: { splitOnNumber?: boolean }) => string

    Formats the given string in snake case fashion

    snake('hello world') -> 'hello_world' snake('va va-VOOM') -> 'va_va_voom' snake('helloWord') -> 'hello_world'

    Type declaration

      • (str: string, options?: { splitOnNumber?: boolean }): string
      • Parameters

        • str: string
        • Optionaloptions: { splitOnNumber?: boolean }

        Returns string