From b58cb2149e7044c429ce4b5b632362fa8f3fb676 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Fri, 30 Jun 2023 17:29:46 +0200 Subject: [PATCH] Add note about sparse arrays #109 --- readme.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/readme.md b/readme.md index 5ededd9..5c7adf2 100644 --- a/readme.md +++ b/readme.md @@ -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`