Trimend di JavaScript

string.trimEnd()
Evil Emu