134
rated 0 times
[
136]
[
2]
/ answers: 1 / hits: 23699
/ 8 Years ago, wed, march 2, 2016, 12:00:00
I am wanting to store TaskPaper-like tasks in a JavaScript object. Suppose I have a task like
- Post to StackOverflow @priority(2) @due(2016-05-03) @flagged
This would turn into
{name:Post to StackOverflow, priority: 2, due:2016-05-03, flagged:value}
Flagged doesn't need a value and all I can think of is to use true
or null
I would like to later filter tasks using if key in object
and having true/false values wouldn't work with my workflow.
What would the SO community recommend as best practices.
More From » json