objectAttr

Description

Given an object and an attribute key, the objectAttr function will return the value of the specified attribute.

Input / Parameter

NameDescriptionInput TypeDefaultOptionsRequired

object

Object with key-value pairs

Object

-

-

Yes

attr

The name of the attribute to be retrieved.

String/Text

-

-

Yes

Output

DescriptionOutput Type

Returns the selected attribute value of the object.

Any

Callback

N/A

Video

Coming Soon.

Example

Given the above object, objectAttr function for name will return John.

  • See also objectValues and objectKeys

Last updated