I am beginner to AngularJS, I have data like below
{
day1: 0,
day2: 0,
day3: 0,
day4: 2
}
How can I convert these data into arrays like below?
[
["day1": 0],
["day2": 0],
["day3": 0],
["day4": 2]
]
I am beginner to AngularJS, I have data like below
How can I convert these data into arrays like below?
|
|||||||||
|
This will give you something along the lines of
|
|||
|
With plain Javascript:
|
|||||
|
Not really related to AngularJS but you can do it like so (plain JS):
|
|||||||||
|
Using _.map in underscore.js
|
|||||||||||||||||||||
|