This is how I did it - https://github.com/guardian/frontend/blob/master/common/app/assets/javascripts/utils/get-property.js