@extra-array/last
@extra-array/last
npm i @extra-array/last
@extra-array/last

@extra-array/last

A collection of functions for working with Arrays.

by nodef

2.10.19 (see all)License:MITTypeScript:Not Found
npm i @extra-array/last
Readme

Gets last value. 📦 😺 🏃‍♂️ 📼 🌔 📜 📰 📘

Similar: head, tail, init, last.

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


References

Downloads/wk

134

GitHub Stars

16

LAST COMMIT

9mos ago

MAINTAINERS

1

CONTRIBUTORS

3

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
2.10.19
latest
9mos ago
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate