toArray
convert the values of any MapLike or ListLike into an array
toArray(obj)
Convert the values of any Map-like or List-like into a JavaScript Array. If a Map-like, key data is discarded and only value data is preserved.
var foo = new DefineList(["bar", "baz"]);
var quux = new DefineMap({ thud: "jeek" });
canReflect.toArray(foo); // -> ["bar", "baz"] canReflect.toArray(quux): // -> ["jeek"]
Parameters
- obj
{Object}
:Any object, whether MapLike or ListLike
Returns
{Array}
:
an array of the values of obj