mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 23:57:49 +00:00
Shorten chars string coersion.
This commit is contained in:
@@ -13919,7 +13919,7 @@
|
||||
if (guard || chars === undefined) {
|
||||
return string.replace(reTrim, '');
|
||||
}
|
||||
chars = (chars + '');
|
||||
chars += '';
|
||||
if (!chars) {
|
||||
return string;
|
||||
}
|
||||
@@ -13958,7 +13958,7 @@
|
||||
if (guard || chars === undefined) {
|
||||
return string.replace(reTrimEnd, '');
|
||||
}
|
||||
chars = (chars + '');
|
||||
chars += '';
|
||||
if (!chars) {
|
||||
return string;
|
||||
}
|
||||
@@ -13995,7 +13995,7 @@
|
||||
if (guard || chars === undefined) {
|
||||
return string.replace(reTrimStart, '');
|
||||
}
|
||||
chars = (chars + '');
|
||||
chars += '';
|
||||
if (!chars) {
|
||||
return string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user