@extra-array/last.min
v2.10.19
Published
Gets last value.
Downloads
188
Readme
Gets last value. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:
This is part of package extra-array.
This is browserified, minified version of @extra-array/last. It is exported as global variable array_last. CDN: unpkg, jsDelivr.
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