> For the complete documentation index, see [llms.txt](https://docs.emobiq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.emobiq.com/emobiq-client/006-actions-and-visual-logic/action-reference/cordova/object/objectattr.md).

# objectAttr

## Description

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

## Input / Parameter

| Name   | Description                                | Input Type  | Default | Options | Required |
| ------ | ------------------------------------------ | ----------- | ------- | ------- | -------- |
| object | Object with key-value pairs                | Object      | -       | -       | Yes      |
| attr   | The name of the attribute to be retrieved. | String/Text | -       | -       | Yes      |

## Output

| Description                                         | Output Type |
| --------------------------------------------------- | ----------- |
| Returns the selected attribute value of the object. | Any         |

## Callback

N/A

## Video

Coming Soon.

## Example

![](/files/TpQZt2lmywjgFkLKCV4c)

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

## Links

* See also `objectValues` and `objectKeys`
