Appframe Knowledge Base

1 hits

How to get all the values of an object as an array

/* Calling the af.common.getObjValues function on an object will return all its values as an array.
   The order of the values is the order they were added to the object. */

af.common.getObjKeys({ a: 1, b: 2, c: 3 });
// Returns: [1, 2, 3]

common web · Perma link post comment Posted by: Jan Henrik Høiland Meling (05-okt-2012)