time-to-botec

Benchmark sampling in different programming languages
Log | Files | Refs | README

index.d.ts (301B)


      1 /**
      2 Capitalize every word in a string: `unicorn cake` → `Unicorn Cake`.
      3 
      4 @param string - The string to titleize.
      5 
      6 @example
      7 ```
      8 import titleize from 'titleize';
      9 
     10 titleize('foo bar');
     11 //=> 'Foo Bar'
     12 
     13 titleize('foo-bar');
     14 //=> 'Foo-Bar'
     15 ```
     16 */
     17 export default function titleize(string: string): string;