Skip to content

Commit

Permalink
Merge pull request #17 from ostrojs/develop
Browse files Browse the repository at this point in the history
trimEnd for string
  • Loading branch information
amarksingh authored Sep 21, 2023
2 parents 87b1c0c + f7aa5d0 commit c9019be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions string.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,9 @@ String.replaceAllArray = function(string, find, replace) {
String.trim = function(string = '', chars) {
return lodash.trim(string, chars)
}
String.trimEnd = function(string = '', chars) {
return lodash.trimEnd(string, chars)
}
String.finish = function(string = '', finished = '') {
if (!string.endsWith(finished)) {
string = string + finished
Expand Down

0 comments on commit c9019be

Please sign in to comment.