From 351e44a1270e86a0030be50f7c5b7cd2847364f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Lipi=C5=84ski?= Date: Tue, 14 Mar 2017 09:44:47 +0100 Subject: [PATCH] Fixin some leftovers bb7c959. --- endsWith.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {