-
Notifications
You must be signed in to change notification settings - Fork 85
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
1 parent
fc68c87
commit 21684f6
Showing
7 changed files
with
17 additions
and
49 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
<<<<<<< HEAD | ||
======= | ||
--- | ||
title: canBe | ||
--- | ||
|
||
>>>>>>> v2 | ||
# canBeChoseong | ||
|
||
인자로 받은 문자가 초성으로 위치할 수 있는 문자인지 검사합니다. | ||
|
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,27 +1,22 @@ | ||
<<<<<<< HEAD | ||
# getChoseong | ||
|
||
======= | ||
--- | ||
title: getChoseong | ||
--- | ||
|
||
# getChoseong | ||
>>>>>>> v2 | ||
|
||
Extracts the Choseong from a Korean word. (Example: 사과 -> 'ㅅㄱ') | ||
|
||
```typescript | ||
function getChoseong( | ||
// Korean string from which to extract the choseong | ||
// Korean string from which to extract the choseong | ||
word: string | ||
): string; | ||
``` | ||
|
||
## Examples | ||
|
||
```tsx | ||
getChoseong('사과') // 'ㅅㄱ' | ||
getChoseong('리액트') // 'ㄹㅇㅌ' | ||
getChoseong('띄어 쓰기') // 'ㄸㅇ ㅆㄱ' | ||
getChoseong('사과'); // 'ㅅㄱ' | ||
getChoseong('리액트'); // 'ㄹㅇㅌ' | ||
getChoseong('띄어 쓰기'); // 'ㄸㅇ ㅆㄱ' | ||
``` |
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 |
---|---|---|
@@ -1,25 +1,23 @@ | ||
<<<<<<< HEAD | ||
======= | ||
--- | ||
title: hasBatchim | ||
--- | ||
|
||
>>>>>>> v2 | ||
# hasBatchim | ||
|
||
Checks if the last character of a Korean string has a batchim (jongseong). | ||
|
||
```typescript | ||
````typescript | ||
hasBatchim( | ||
str: string, | ||
// checking for single batchim | ||
str: string, | ||
// checking for single batchim | ||
options?: { single?: boolean } | ||
): boolean | ||
|
||
|
||
```typescript | ||
hasBatchim('값') // true | ||
hasBatchim('토') // false | ||
hasBatchim('갑', { single: true }) // true | ||
hasBatchim('값', { single: true }) // false | ||
hasBatchim('토', { single: true }) // false | ||
```` | ||
```` |
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,29 +1,23 @@ | ||
<<<<<<< HEAD | ||
# hasBatchim | ||
|
||
======= | ||
--- | ||
title: hasBatchim | ||
--- | ||
|
||
# hasBatchim | ||
>>>>>>> v2 | ||
|
||
한글 문자열의 마지막 글자가 받침이 있는지 확인합니다. | ||
|
||
|
||
```typescript | ||
````typescript | ||
hasBatchim( | ||
str: string, | ||
str: string, | ||
// 홑받침 여부를 확인할지 여부 | ||
options?: { single?: boolean } | ||
): boolean | ||
|
||
|
||
```typescript | ||
hasBatchim('값') // true | ||
hasBatchim('토') // false | ||
hasBatchim('갑', { single: true }) // true | ||
hasBatchim('값', { single: true }) // false | ||
hasBatchim('토', { single: true }) // false | ||
```` | ||
```` |
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