like this? let arr = ["foo", "baa", "baz"] assert arr[0] == "foo" assert arr[^1] == "baz" Run
- How to quickly get the first, or last element of an array ... mareklachbc
- How to quickly get the first, or last element of an a... enthus1ast
- How to quickly get the first, or last element of ... Stefan_Salewski