Function title

Formats the given string in title case fashion

title('hello world') -> 'Hello World'
title('va_va_boom') -> 'Va Va Boom'
title('root-hook') -> 'Root Hook'
title('queryItems') -> 'Query Items'
  • Parameters

    • str: undefined | null | string

    Returns string