Post #514762
2026-03-04 01:23 UTC
Always forgetting to use `.at(-1)` to get last element in an array.
#JavaScript
Replies (2)
-
@urlyman@mastodon.social 2026-03-04 01:26
@cheeaun ๐
-
@kentaromiura@mastodon.social 2026-03-05 23:46
@cheeaun foo[โ-1โ] = โH@X0r3dโ