2021-09-04 10:15:02 +05:00

12 lines
120 B
JavaScript

function last(a) {
return a[a.length - 1];
}
function first(a) {
return a[0];
}
module.exports = {
last,
first,
};