# ArkUI Development (JS)
## Does the \ component support center alignment? (API version 9)
Applicable to: FA model
**Symptom**
The **text-align** style does not work for the **\** component.
**Solution**
The **text-align** style works for the **\** component, but not for the **\** component.
**Reference**
[input](../reference/arkui-js/js-components-basic-input.md), [text](../reference/arkui-js/js-components-basic-text.md)
## How do I determine whether a value exists in a JS object? (API version 9)
**Solution**
Use **Object.values\(*object name*\).indexOf\(*value to be checked*\)**. If **-1** is returned, the corresponding value is not included. Otherwise, the corresponding value is included.
## Why can't array variables be used to control component attributes? (API version 8)
Currently, the web-like development paradigm does not listen for the modification of elements in an array. Therefore, the page refresh can be triggered only when the array object is modified, but not when an element in the array is modified. In the following example, the **test1\(\)** statement, which assigns values to the entire array, will disable the related **\