Skip to content

Instantly share code, notes, and snippets.

@romain130492
Last active February 24, 2020 14:24
Show Gist options
  • Save romain130492/c86e40c320fba46ecdfdf3a8d4c17282 to your computer and use it in GitHub Desktop.
Save romain130492/c86e40c320fba46ecdfdf3a8d4c17282 to your computer and use it in GitHub Desktop.
Conditionnal in variable
arrayDayEvents.length == 0
? (this.noEvent = true)
: (this.noEvent = false)
Shorter Version
this.noEvent = arrayDayEvents.length == 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment