diff --git a/endsWith.js b/endsWith.js index 9fcf9efd3..9cba731c5 100644 --- a/endsWith.js +++ b/endsWith.js @@ -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) {