Nav

keySet

keySet(T): ?

Returns the list of key names from an object.

Transform

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

        
     
1
 ["a","b"]