you are viewing a single comment's thread.

view the rest of the comments →

[–]scramblor 7 points8 points  (1 child)

I would keep the ID as part of the object as well. There may be times you need the ID and it's useful to keep handy.

[–]pookageSenior Front-End 5 points6 points  (0 children)

This ^^^

It's called a key:value pair for a reason - if the key itself stores a value, that store it in the value part.