'use strict';

var bind = require('function-bind'); var replace = bind.call(Function.call, String.prototype.replace);

/* eslint-disable no-control-regex */ var rightWhitespace = /[x09x0Ax0Bx0Cx0Dx20xA0u1680u180Eu2000u2001u2002u2003u2004u2005u2006u2007u2008u2009u200Au202Fu205Fu3000u2028u2029uFEFF]*$/; /* eslint-enable no-control-regex */

module.exports = function trimRight() {

return replace(this, rightWhitespace, '');

};