본문 바로가기

개발/Web

[js] Array 마지막 값 추출

Python Javascript
arra[-1] array[array.length-1]
array.slice(-1)[0]

'개발 > Web' 카테고리의 다른 글

[vue.js] vue 설치  (0) 2020.11.10
[js] 날짜  (0) 2020.10.29
[Angular 2+] @ViewChild & @ViewChilderen  (0) 2020.10.19
[js] filter  (0) 2020.10.12
[Angular 2+] ngClass  (0) 2020.08.31