mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 10:07:48 +00:00
Bump to v4.4.0.
This commit is contained in:
4
trim.js
4
trim.js
@@ -42,7 +42,9 @@ function trim(string, chars, guard) {
|
||||
var strSymbols = stringToArray(string),
|
||||
chrSymbols = stringToArray(chars);
|
||||
|
||||
return strSymbols.slice(charsStartIndex(strSymbols, chrSymbols), charsEndIndex(strSymbols, chrSymbols) + 1).join('');
|
||||
return strSymbols
|
||||
.slice(charsStartIndex(strSymbols, chrSymbols), charsEndIndex(strSymbols, chrSymbols) + 1)
|
||||
.join('');
|
||||
}
|
||||
|
||||
export default trim;
|
||||
|
||||
Reference in New Issue
Block a user