KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is there a quick (short, character wise) way to get the last element of an array (assuming the array is non-empty)? I usually do: last = array[array.length-1] or last = array[-1..][0]
Tags (comma-separated)
Save Edits
Cancel