I am new to Typescript and I have a dropdown whose values I need to iterate through. This is the code I am trying:
var sortBy = document.getElementById("SortbySel");
I want to iterate through the options but since this is an HTMLElement, I am unable to do so. What would be the best way to do this?