How to get the value of the rotation angle of gradient in Adobe Illustrator in the script?

How to pull through the script the value of the steering angle of the gradient fill in the selected object?

April 3rd 20 at 18:25
1 answer
April 3rd 20 at 18:27
var angle = app.activeDocument.selection[0].fillColor.angle;

The Adobe is sufficiently detailed scripting documentation:

Find more questions by tags JavaScriptAdobe Illustrator