IOTConnect-Web/node_modules/ext/docs/string_/capitalize.md

10 lines
258 B
Markdown
Raw Permalink Normal View History

2024-05-09 01:49:52 +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
```