Options
All
  • Public
  • Public/Protected
  • All
Menu

Module Strings/Inflector/inflectToDashed

Index

Functions

Functions

inflectToDashed

  • inflectToDashed(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