Apply even more let/const transforms.

This commit is contained in:
John-David Dalton
2017-01-09 12:23:34 -08:00
parent e6152a97e8
commit dc687c1d85
177 changed files with 433 additions and 437 deletions

View File

@@ -30,12 +30,12 @@ function endsWith(string, target, position) {
string = toString(string);
target = baseToString(target);
var length = string.length;
const length = string.length;
position = position === undefined
? length
: baseClamp(toInteger(position), 0, length);
var end = position;
const end = position;
position -= target.length;
return position >= 0 && string.slice(position, end) == target;
}