Trimend in JavaScript

string.trimEnd()
Evil Emu