스크랩

mutable or immutable ?

미래에서 온 개발자 2022. 11. 12. 17:30

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()