serialize
Returns the a serialized version of this list.
list.serialize()
Goes through each item in the list and gets its serialized value and returns them in a plain Array.
Each items serialized value is the result of calling .serialize()
on the item or if the item doesn't have a serialize
method,
the item itself.
var list = new DefineList(["first", {foo: "bar"}]);
var serializedList = list.serialize();
serializedList //-> ["first", {foo: "bar"}]
Returns
{Array}
:
An array with each item's serialied value.