() -> value返回数组中最后一个元素,若数组为空,返回 undefined。

样例
['Ruby', 'Php', 'Python'].last()
// -> 'Python'
[].last()
// -> undefined