Free MuleSoft CONNECT Keynote & Expo Pass Available!

Register now+
Nav

nameSet

nameSet(Object): Array<String>

Returns the list of key names from an object.

Transform

        
     
1
2
3
4
%dw 2.0
import dw::core::Objects
---
Objects::nameSet({a: true, b: 1})
Output

        
     
1
 ["a","b"]