I prefer the TypeScript forloop over the JQuery each().
I.e. because return and break work more like expected.
Is there an easy way to loop through a JQuery object using TypeScript?
let $elements = $('.text-element');
// error: Type 'JQuery' is not an array type or a string type.
for ( let $element of $elements )
{
}