kjelsrud.dev/node_modules/titleize/index.d.ts
2023-07-19 21:31:30 +02:00

17 lines
301 B
TypeScript

/**
Capitalize every word in a string: `unicorn cake` → `Unicorn Cake`.
@param string - The string to titleize.
@example
```
import titleize from 'titleize';
titleize('foo bar');
//=> 'Foo Bar'
titleize('foo-bar');
//=> 'Foo-Bar'
```
*/
export default function titleize(string: string): string;