Javascript: get last item of array without removing it Date: 2019-01-18 [1, 2, 3, 4, 5, 6, 7].slice(-1)[0] // 7 Like224 Dislike28 179200cookie-checkJavascript: get last item of array without removing itno