-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
628 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# lowerFirst | ||
|
||
Lowercase the `first letter` of the `string` and keep the rest unchanged. | ||
|
||
### Usage | ||
|
||
```ts | ||
import { upperFirst } from 'rattail' | ||
|
||
upperFirst('Hello') // return 'hello' | ||
upperFirst('Rattail') // return 'rattail' | ||
``` | ||
|
||
### Arguments | ||
|
||
| Arg | Type | Defaults | | ||
| ------- | :------: | -------: | | ||
| `value` | `string` | | | ||
|
||
### Return | ||
|
||
| Type | | ||
| :------: | | ||
| `string` | |
8 changes: 4 additions & 4 deletions
8
docs/string/capitalize-first-letter.md → docs/string/upper-first.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# lowerFirst | ||
|
||
将`字符串`的`首字母`小写,其余部分保持不变。 | ||
|
||
### 使用 | ||
|
||
```ts | ||
import { lowerFirst } from 'rattail' | ||
|
||
upperFirst('Hello') // return 'hello' | ||
upperFirst('Rattail') // return 'rattail' | ||
``` | ||
|
||
### 参数列表 | ||
|
||
| 参数 | 类型 | 默认值 | | ||
| ------- | :------: | -----: | | ||
| `value` | `string` | | | ||
|
||
### 返回值 | ||
|
||
| 类型 | | ||
| :------: | | ||
| `string` | |
2 changes: 1 addition & 1 deletion
2
docs/zh/string/capitalize-first-letter.md → docs/zh/string/upper-first.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# capitalizeFirstLetter | ||
# upperFirst | ||
|
||
将`字符串`的`首字母`大写,其余部分保持不变。 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.