Closed eulores closed 2 years ago
At least I didn't find no reference in arrays or objects
For example, this compiles fine
let todos = [ title:'one' completed:false - title:'two' completed:false - title:'three' completed:true ]
and is nicer to read than the alternative
let todos = [{title:'one', completed:false}, {title:'two', completed:false}, {title:'three', completed:true}]
Not sure if this is because this style will be deprecated? If it's a keeper, I can add in an example to the docs
At least I didn't find no reference in arrays or objects
For example, this compiles fine
and is nicer to read than the alternative