Skip to content

last(xs)

入参

参数类型必填说明
xsany[]-

示例

typescript
const arr = [1, 2];
last(arr); // 2;