CSSUnparsedValue: values() method
CSS Typed Object Model API
CSS Typed Object Model API
The **`values()`** method of the CSSUnparsedValue interface returns a new _array iterator_ that yields each item in the object.
## Syntax
```js-nolint
values()
```
### Parameters
None.
### Return value
A new [iterable iterator object](/docs/Web/JavaScript/Reference/Global_Objects/Iterator).
## Examples
### Iterating over values
```js
const value = new CSSUnparsedValue(["1em", "#445566", "-45px"]);
for (const fragment of value.values()) {
console.log(fragment);
}
// "1em"
// "#445566"
// "-45px"
```
## Specifications
## Browser compatibility
## See also
- CSSUnparsedValue()
- CSSUnparsedValue.entries()
- CSSUnparsedValue.forEach()
- CSSUnparsedValue.keys()
- CSSUnparsedValue.length
- [Using the CSS Typed OM](/docs/Web/API/CSS_Typed_OM_API/Guide)
- [CSS Typed Object Model API](/docs/Web/API/CSS_Typed_OM_API)
Cite this
"CSSUnparsedValue: values() method". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/API/CSSUnparsedValue/values JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy