Skip to content

Commit

Permalink
chore: add info about object deduplication in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Tkacz committed Oct 2, 2024
1 parent 9b0a477 commit 7ad66c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/array-utils.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ console.log(removeFalsy(array)) // result: ['valid', 1]
`removeDuplicates<const T>(array: readonly T[]): T[]`

Return a copy of the given array without duplicates.
Objects are deduplicated by reference (not deep equality)

```typescript
const array = [0, 0, 1, 'a', 'a', 'b']
Expand Down

0 comments on commit 7ad66c3

Please sign in to comment.