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