Trimend w JavaScript

string.trimEnd()
Evil Emu