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