# Conditionally add elements to declaratively defined arrays

**URL:** <https://es.discourse.group/t/conditionally-add-elements-to-declaratively-defined-arrays/1041>\
**Category:** 💡 Ideas\
**Created:** [October 20, 2021, 1:49am UTC](https://es.discourse.group/t/conditionally-add-elements-to-declaratively-defined-arrays/1041 "2021-10-20T01:49:21Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![theScottyJam](https://yyz2.discourse-cdn.com/free1/user_avatar/es.discourse.group/thescottyjam/32/616_2.png) [@theScottyJam](https://es.discourse.group/u/theScottyJam)\
**Post date:** [October 20, 2021, 10:29pm UTC](https://es.discourse.group/t/conditionally-add-elements-to-declaratively-defined-arrays/1041/6 "2021-10-20T22:29:35Z")

</div>

Here's a related thread: [Optional keys in objects](https://es.discourse.group/t/optional-keys-in-objects/523)

---

_[View the full topic](https://es.discourse.group/t/conditionally-add-elements-to-declaratively-defined-arrays/1041)._
