Problem

Return last element of non-empty arr.

Examples

  • arrayLast([9, 8]) -> 8
Compile and test (Ctrl+Enter)