@extra-array/last
v2.10.19
Published
Gets last value.
Downloads
717
Readme
Gets last value. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:
This is part of package extra-array.
array.last(x, [vd]);
// x: an array
// vd: default value
const array = require("extra-array");
array.last([1, 2, 3]);
// 3
array.last([], -1);
// -1