sindresorhus / dot-prop

Get, set, or delete a property from a nested object using a dot path
MIT License
812 stars 69 forks source link

Support for dot syntax for array indices? #118

Open goldingdamien opened 2 months ago

goldingdamien commented 2 months ago

Can you confirm you do not and will not support dot syntax for array indices? It seems already answered previously, but time has passed, and there is importance in dot syntax as I will share afterwards: https://github.com/sindresorhus/dot-prop/issues/107

React Hook Form currently supports only dot syntax (previously supported bracket syntax): "On top of that, for better type support, we have removed bracket syntax and replaced with dot syntax." https://legacy.react-hook-form.com/migrate-v6-to-v7/

It would be nice if this library supported this format, or offered a solution for conversions. If not, please make clear here.

Regards.