Reputation: 7939
I've got a cookie and I need to pull it's values and run a function on each of them. Not sure about how to separate the values... so here's what I'm working with:
var cookie = [1,2,3],
val = cookie.methodThatSplitsEachValueIntoASeparateObject;
val.each(function(){
//I'm running on 1, 2, and 3!
});
Upvotes: 1
Views: 526
Reputation: 8376
Maybee you iterate through the array?
for(var i=0;i<cookies.length;i++) {
//Create object from cookies[i]
}
Hope that helps.
Upvotes: 0