any variables and length?
['a', 'b', 'c'].pop()
I'm interested to know how did you endup facing this limitation
There weren't any limitations. I wanted my code to be a little bit cleaner
well you can write .last() prototype function and reuse it instead of always using length. However veterans might say it's prorotype pollution
Yes but why can't you just use length - 1?
Обсуждают сегодня