In magento1 there was a function called decorateTable() that could be called from a phtml file and used to format attribute tables. Specifically it added classes even, odd, and last to tr dom elements, which could them easily be styled using css.
Is there a similar function in magento 2?