Fixin some leftovers bb7c959.

This commit is contained in:
Michał Lipiński
2017-03-14 09:44:47 +01:00
committed by John-David Dalton
parent f983ff2b7c
commit 351e44a127

View File

@@ -20,7 +20,7 @@
* endsWith('abc', 'b', 2)
* // => true
*/
function endsWith(string, target, position) {)
function endsWith(string, target, position) {
const { length } = string
position = position === undefined ? length : +position
if (position < 0 || position != position) {