Skip to content

Commit

Permalink
Add note about sparse arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jun 30, 2023
1 parent 7251fb6 commit b58cb21
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ for (const property of deepKeys(user)) {
}
```

Sparse arrays are supported, but holes are filled. In general, [avoid using sparse arrays](https://github.com/sindresorhus/dot-prop/issues/109#issuecomment-1614819869).

#### object

Type: `object | array`
Expand Down

0 comments on commit b58cb21

Please sign in to comment.