How to extract layer rotation (transform) in jsx photoshop script?

JSX script to get the rotation value of an element after it has been rotated with the transformation tool.