We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Get last value.
Similar: head, tail, init, last.
function last(x, vd?) // x: an array // vd: default value
const xarray = require('extra-array'); xarray.last([1, 2, 3]); // → 3 xarray.last([], -1); // → -1