File manager - Edit - /usr/local/lib/node_modules/bower/lib/node_modules/mout/src/string/rtrim.js
Back
define(['../lang/toString', './WHITE_SPACES'], function(toString, WHITE_SPACES){ /** * Remove chars from end of string. */ function rtrim(str, chars) { str = toString(str); chars = chars || WHITE_SPACES; var end = str.length - 1, charLen = chars.length, found = true, i, c; while (found && end >= 0) { found = false; i = -1; c = str.charAt(end); while (++i < charLen) { if (c === chars[i]) { found = true; end--; break; } } } return (end >= 0) ? str.substring(0, end + 1) : ''; } return rtrim; });
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings