Skip to content

Commit

Permalink
assemble docs
Browse files Browse the repository at this point in the history
  • Loading branch information
okinawaa committed Aug 9, 2024
1 parent 08adfc9 commit f5ec1fb
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 0 deletions.
38 changes: 38 additions & 0 deletions docs/src/pages/docs/api/assemble.en.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

---
title: assemble
---

import { Sandpack } from '@/components/Sandpack';


# assemble

Combine the Korean sentences and characters in the array received as input according to Korean language rules.

```typescript
function assemble(
// An array containing Korean characters and sentences.
words: string[]
): string
```



## Demo

<br />

<Sandpack>

```ts index.ts
import { assemble } from 'es-hangul';
console.log(assemble(['아버지가', ' ', '방ㅇ', 'ㅔ ', '들ㅇ', 'ㅓ갑니다']))
console.log(assemble(['아버지가', ' ', '방에 ', '들어갑니다']))
console.log(assemble(['ㅇ', 'ㅏ', 'ㅂ', 'ㅓ', 'ㅈ', 'ㅣ']))
```

</Sandpack>

37 changes: 37 additions & 0 deletions docs/src/pages/docs/api/assemble.ko.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
title: assemble
---

import { Sandpack } from '@/components/Sandpack';


# assemble

인자로 받은 배열에 담긴 한글 문장과 문자를 한글 규칙에 맞게 합성합니다.

```typescript
function assemble(
// 한글 문자와 문장을 담고 있는 배열
words: string[]
): string
```



## 사용해보기

<br />

<Sandpack>

```ts index.ts
import { assemble } from 'es-hangul';
console.log(assemble(['아버지가', ' ', '방ㅇ', 'ㅔ ', '들ㅇ', 'ㅓ갑니다']))
console.log(assemble(['아버지가', ' ', '방에 ', '들어갑니다']))
console.log(assemble(['ㅇ', 'ㅏ', 'ㅂ', 'ㅓ', 'ㅈ', 'ㅣ']))
```

</Sandpack>

0 comments on commit f5ec1fb

Please sign in to comment.