# Optional keys in objects

**URL:** <https://es.discourse.group/t/optional-keys-in-objects/523>\
**Category:** 💡 Ideas\
**Tags:** proposal\
**Created:** [November 3, 2020, 8:10am UTC](https://es.discourse.group/t/optional-keys-in-objects/523 "2020-11-03T08:10:51Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![aiddun](https://yyz2.discourse-cdn.com/free1/user_avatar/es.discourse.group/aiddun/32/1073_2.png) [@aiddun](https://es.discourse.group/u/aiddun)\
**Post date:** [October 21, 2021, 6:18am UTC](https://es.discourse.group/t/optional-keys-in-objects/523/13 "2021-10-21T06:18:48Z")

</div>

Hi! I was just linked to this thread [from another](https://es.discourse.group/t/conditionally-add-elements-to-declaratively-defined-arrays/1041) where we're discussing some solutions to the same problem for both arrays and objects using modified ternary and null coalescence syntax. Thoughts on that approach (for objects)?

---

_[View the full topic](https://es.discourse.group/t/optional-keys-in-objects/523)._
