Skip to content

Commit

Permalink
fix: partition interface 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ssi02014 committed Jun 16, 2024
1 parent 663e8fb commit e0cb412
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/docs/utils/array/partition.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
## Interface
```ts title="typescript"
const partition: <T>(
arr: readonly T[] | T[],
arr: T[] | readonly T[],
predicate: (item: T) => boolean
) => [truthyArray: T[], falsyArray: T[]];
```
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/src/array/partition/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const partition = <T>(
arr: T[] | ReadonlyArray<T>,
arr: T[] | readonly T[],
predicate: (item: T) => boolean
): [truthyArray: T[], falsyArray: T[]] => {
const truthyArray: T[] = [];
Expand Down

0 comments on commit e0cb412

Please sign in to comment.