Does it mutate?
The lastIndexOf() method returns the last index at which a given element can be found in the array, or -1 if it is not present. The array is searched backwards, starting at fromIndex.Array.prototype.lastIndexOf ( searchElement [ , fromIndex ] )
doesitmutate.xyz
📍 immutable methods :
- slice(), concat()
- map(), reduce()
'스크랩' 카테고리의 다른 글
불변성 Immutable 이란 무엇인가 (0) | 2022.12.05 |
---|---|
평생 학습자로 살아가는 우리 모두에게 필요한 이야기 (0) | 2022.11.30 |
호출 스택, 태스크 큐, 이벤트 루프 (0) | 2022.11.12 |
Javascript로 할 수 있는 것들 (0) | 2022.11.10 |
웹의 역사와 앞으로의 프론트엔드 (0) | 2022.10.26 |