4.0.0 • Published 7 years ago

starry.take v4.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 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 take<T = any>(
  iterable: Iterable<T>,
  count: number = 1
  ): Iterable<T>

Returns count number of elements from the beginning of the iterable.

Parameters:

  • iterable - Iterable<T>
  • count - number. Default: 1

Returns: Iterable<T>

Throws:

  • TypeError - when count is not a finite number.
4.0.0

7 years ago

3.0.0

8 years ago

3.0.0-1

8 years ago

3.0.0-0

8 years ago

2.0.0

8 years ago

2.0.0-0

8 years ago

1.6.1

8 years ago

1.4.1

8 years ago

1.3.1

8 years ago

1.2.1

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.0

9 years ago

0.2.0

9 years ago

0.1.1

9 years ago