Contact Free trial Login

valueSet

valueSet({ (K)?: V }): Array<V>

Returns the list of the values in an object.

Parameters

Name Description

obj

The object to evaluate.

Example

This example returns the values from the input object.

Source

%dw 2.0
import * from dw::core::Objects
output application/json
---
{ "valueSet" : valueSet({a: true, b: 1}) }

Output

{ "valueSet" : [true,1] }

Was this article helpful?

💙 Thanks for your feedback!

Edit on GitHub