Options
All
  • Public
  • Public/Protected
  • All
Menu

Module Strings/Inflector/inflectToUnderscore

Index

Functions

inflectToUnderscore

  • inflectToUnderscore(string: string, intelligentSplitting?: boolean): string
  • Converts a "Given string" to "given_string" or "another.String-you wouldWant" to "another_string_you_would_want".

    Parameters

    • string: string

      The string to inflect

    • Optional intelligentSplitting: boolean

      Uses intelligent splitting for edge cases if set to true. @see inflectToArray() for details.

    Returns string

Generated using TypeDoc