Shorten chars string coersion.

This commit is contained in:
John-David Dalton
2016-04-08 08:48:54 -07:00
parent c1958daf65
commit f6ac7cb1a1

View File

@@ -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;
} }