Skip to content

Keys

Returns all dictionary keys as a string array.

1
myDataTableDictionary.Keys():Array<string>

Returns

An array of key values as strings.

Examples

List the keys of a dictionary

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
var groupsByName = $Database.Get({
    TargetSchema : 'HR',
    TargetTable : 'Groups'
}).ToDictionary('Name');

var names = groupsByName.Keys();

for (var i = 0; i < names.length; i++) {
    console.log(names[i]);
}