serialize
Returns the a serialized version of this array.
array.serialize()
Goes through each item in the array and gets its serialized value and returns them in a plain Array.
Each items serialized value is the result of calling canReflect.serialize() on the item.
import { ObservableArray } from "can/everything";
const array = new ObservableArray(["first", {foo: "bar"}]);
const serializedArray = array.serialize();
console.log(serializedArray); //-> ["first", {foo: "bar"}]
Returns
{Array}
:
An array with each item's serialized value.