@yookue/ts-lang-utils
    Preparing search index...

    Function toKebabCase

    • Returns the kebab case representation of the given string

      Parameters

      • Optionaltext: null | string

        the source string to inspect

      Returns undefined | null | string

      the kebab case representation of the given string

      David Hsing

      toKebabCase('FOO BAR');    // 'foo-bar'
      toKebabCase('fooBar'); // 'foo-bar'
      toKebabCase('__FOO_BAR__'); // 'foo-bar'