Prefere ES6 templates.

This commit is contained in:
Michał Lipiński
2017-03-14 09:45:43 +01:00
committed by John-David Dalton
parent bb7c959479
commit f983ff2b7c

View File

@@ -29,7 +29,7 @@ function startsWith(string, target, position) {
else if (position > length) {
position = length
}
target = (target + '')
target = `${ target }`
return string.slice(position, position + target.length) == target
}