String.\+prototype.\+trim\+End \textsuperscript{\href{https://npmjs.com/package/string.prototype.trimend}{\texttt{ }}}

\href{https://travis-ci.org/es-shims/String.prototype.trimEnd}{\texttt{ }} \href{https://david-dm.org/es-shims/String.prototype.trimEnd}{\texttt{ }} \href{https://david-dm.org/es-shims/String.prototype.trimEnd\#info=devDependencies}{\texttt{ }} \mbox{[}\mbox{]}\mbox{[}license-\/url\mbox{]} \href{http://npm-stat.com/charts.html?package=string.prototype.trimend}{\texttt{ }}

\href{https://npmjs.com/package/string.prototype.trimend}{\texttt{ }}

\href{https://ci.testling.com/es-shims/String.prototype.trimEnd}{\texttt{ }}

An ES2019-\/spec-\/compliant {\ttfamily String.\+prototype.\+trim\+End} shim. Invoke its \char`\"{}shim\char`\"{} method to shim {\ttfamily String.\+prototype.\+trim\+End} if it is unavailable.

This package implements the \href{https://github.com/es-shims/api}{\texttt{ es-\/shim API}} interface. It works in an ES3-\/supported environment and complies with the \href{http://www.ecma-international.org/ecma-262/6.0/\#sec-object.assign}{\texttt{ spec}}. In an ES6 environment, it will also work properly with {\ttfamily Symbol}s.

Most common usage\+: 
\begin{DoxyCode}{0}
\DoxyCodeLine{var trimEnd = require('string.prototype.trimend');}
\DoxyCodeLine{}
\DoxyCodeLine{assert(trimEnd(' \(\backslash\)t\(\backslash\)na \(\backslash\)t\(\backslash\)n') === 'a \(\backslash\)t\(\backslash\)n');}
\DoxyCodeLine{}
\DoxyCodeLine{if (!String.prototype.trimEnd) \{}
\DoxyCodeLine{    trimEnd.shim();}
\DoxyCodeLine{\}}
\DoxyCodeLine{}
\DoxyCodeLine{assert(trimEnd(' \(\backslash\)t\(\backslash\)na \(\backslash\)t\(\backslash\)n ') === ' \(\backslash\)t\(\backslash\)na \(\backslash\)t\(\backslash\)n '.trimEnd()); }

\end{DoxyCode}
\hypertarget{md_sfcode_node_modules_string_prototype_trimend_README_autotoc_md29118}{}\doxysubsection{Tests}\label{md_sfcode_node_modules_string_prototype_trimend_README_autotoc_md29118}
Simply clone the repo, {\ttfamily npm install}, and run {\ttfamily npm test} 