How do I iterate return val of Diagram.selection


How do I iterate over what is being returned from Diagram.selection and what does it actually return?

According to the api it returns a Set but none of the normal Set commands work. For example the following doesn’t work :

var test = Diagram.selection;
var keys = test.keys(); //error here

.keys() is a valid request for a Set (when a Set is implemented in javascript) so whats being returned cannot be a set but has to be something else.

Set documentation

Lol it was at the bottom of that list. Thanks walter!