From bf5d0867a658c6f6288088d282d87f8b54d84c2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Lipi=C5=84ski?= Date: Mon, 16 Oct 2017 12:01:05 +0200 Subject: [PATCH] Remove semicolons from `dropRight`. --- dropRight.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dropRight.js b/dropRight.js index fa5dd7739..774dd09c6 100644 --- a/dropRight.js +++ b/dropRight.js @@ -23,8 +23,8 @@ import slice from './slice.js' * // => [1, 2, 3] */ function dropRight(array, n=1) { - const length = array == null ? 0 : array.length; - return length ? slice(array, 0, n < 0 ? 0 : -n) : []; + const length = array == null ? 0 : array.length + return length ? slice(array, 0, n < 0 ? 0 : -n) : [] } export default dropRight