4.0.1 • Published 6 years ago

starry.last v4.0.1

Weekly downloads
15
License
MIT
Repository
github
Last release
6 years ago

Member of the starry suite—modular functions for iterable objects.

npm node

Status

Applies to the whole suite.

Build Status Coverage Status

Usage

function last<T = any>(iterable: Iterable<T> = []) : T | undefined

Returns the last element of iterable.

Returns undefined if the iterable has no elements.

Parameters:

  • iterable - Iterable<T>

Returns: T | undefined

4.0.1

6 years ago

3.0.0

7 years ago

3.0.0-1

7 years ago

3.0.0-0

7 years ago

2.0.0

7 years ago

2.0.0-0

7 years ago

1.4.1

7 years ago

1.2.1

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

8 years ago

0.2.0

8 years ago

0.1.1

8 years ago