Solidt.eu
  • Home
  • Code snippets
  • News

Javascript: get last item of array without removing it

Date: 2019-01-18
[1, 2, 3, 4, 5, 6, 7].slice(-1)[0] // 7

179200cookie-checkJavascript: get last item of array without removing itno
Loading