Skip to main content

/images/icons/xs_temp.svg Get Keys

object.keys {
  value = $object
} as $keys
ParameterPurposeExample
$objectThe variable that the object you’d like to target is stored$object
asThe variable that you want to store the resultkeys
object.keys {
  value = $object
} as $keys
// $keys now contains an array of the object's property names

/images/icons/xs_temp.svg Get Values

object.values {
  value = $object
} as $values
ParameterPurposeExample
$objectThe variable that the object you’d like to target is stored$object
asThe variable that you want to store the resultvalues
object.values {
  value = $object
} as $values
// $values now contains an array of the object's property values

/images/icons/xs_temp.svg Get Entries

object.entries {
  value = $object
} as $entries
ParameterPurposeExample
$objectThe variable that the object you’d like to target is stored$object
asThe variable that you want to store the resultentries
object.entries {
  value = $object
} as $entries
// $entries now contains an array of key-value pairs from the object
I