timepiece/node_modules/ext/docs/string_/capitalize.md

10 lines
258 B
Markdown
Raw Normal View History

2024-05-14 14:54:12 +00:00
# `string.capitalize()` _(ext/string\_/capitalize)_
Capitalize input string, e.g. convert `this is a test` into `This is a test`.
```javascript
const capitalize = require("ext/string_/capitalize");
capitalize.call("this is a test"); // This is a test
```