There is an object array like this:
[
{
timestamp: 1318781876
any: 'other fields'
}
]
Of course there are multiple objects in that array. I am using momentJS
- if it matters here...
Now I need to split that array into months. That means I need to get all objects for 'july' to display them in a table. Is this possible at all or should I change the datastructure? I thought using timestamp is the best option, as I could calculate everything from this.
But now I'm thinking if I have to add month
and year
field to the object...