Skip to main content
Version: 1.0.0

objectValues

objectValues ( object : object ) : collection

ParameterTypeDescription
objectobject→Object to return property values
Resultcollection←Collection of property values (variant)

Description​

The objectValues command returns a collection of variants containing all of the enumerable property values of the object.

The order of values within the returned collection follows the definition order of the properties.

Example​

 var person : object
var col : collection

person = newObject
person.lastName = "Smith"
person.firstName = "Jenny"
person.children = newObject("Mary",12,"Mark",8)

col = objectValues(person)

//col[0]:"Smith"
//col[1]:"Jenny"
//col[2]:{"Mary":12,"Mark":8}

See also​

objectEntries
objectKeys