Skip to content

Commit

Permalink
docs(compact): Fix return type of compact
Browse files Browse the repository at this point in the history
  • Loading branch information
raon0211 committed Jun 28, 2024
1 parent 715bc60 commit a8d7e03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/ko/reference/array/compact.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function compact<T>(arr: T[]): Array<Exclude<T, false | null | 0 | '' | undefine

### 반환 값

(`T[]`): 거짓으로 평가될 수 있는 값을 모두 제거한 새로운 배열
(`Array<Exclude<T, false | null | 0 | '' | undefined>>`): 거짓으로 평가될 수 있는 값을 모두 제거한 새로운 배열

## 예시

Expand Down
2 changes: 1 addition & 1 deletion docs/reference/array/compact.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function compact<T>(arr: T[]): Array<Exclude<T, false | null | 0 | '' | undefine

### Returns

(`T[]`) A new array with all falsey values removed.
(`Array<Exclude<T, false | null | 0 | '' | undefined>>`) A new array with all falsey values removed.

## Examples

Expand Down

0 comments on commit a8d7e03

Please sign in to comment.