danprince / zaphod

🌌 Clojure's API for JavaScript's Objects
https://zaphod.surge.sh
MIT License
54 stars 1 forks source link

Create nested objects based on key types #20

Closed danprince closed 8 years ago

danprince commented 8 years ago

Functions that create paths (setIn/updateIn) should look at the key types before deciding whether to create objects or arrays, when the keys do not exist.

null::setIn(['a', 0], 3)
// should => { a: [3] }
danprince commented 8 years ago

Reminder to update this in the docs