diff --git a/lodash.js b/lodash.js index b60c9ed6e..97808d92c 100644 --- a/lodash.js +++ b/lodash.js @@ -14631,7 +14631,10 @@ */ function startsWith(string, target, position) { string = toString(string); - position = baseClamp(toInteger(position), 0, string.length); + position = position === undefined + ? 0 + : baseClamp(toInteger(position), 0, string.length); + target = baseToString(target); return string.slice(position, position + target.length) == target; }