Skip to content

Instantly share code, notes, and snippets.

@pointofpresence
Created August 30, 2022 16:07
Show Gist options
  • Save pointofpresence/c1559af0b0eea3b19549ad07d0dddeba to your computer and use it in GitHub Desktop.
Save pointofpresence/c1559af0b0eea3b19549ad07d0dddeba to your computer and use it in GitHub Desktop.
Created with Copy to Gist
Conditionally adding entries inside Array and object literals
http://2ality.com/2017/04/conditional-literal-entries.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment