kjelsrud.dev/node_modules/titleize/index.d.ts

18 lines
301 B
TypeScript
Raw Normal View History

2023-07-19 21:31:30 +02:00
/**
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;