4.0.0 • Published 7 years ago

starry.some v4.0.0

Weekly downloads
2
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 some<T = any>(
  iterable: Iterable<T>,
  predicate: (item: T) => boolean = x => x as T & boolean
  ): boolean

Returns whether any element of iterable satisfies predicate.

Parameters:

  • iterable - Iterable<T>
  • predicate - Function<T, Boolean>. Default: x => x

Returns: Boolean

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.0

8 years ago

1.1.1

8 years ago

1.0.0

9 years ago