starry.some

4.0.0 • Public • Published

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

Package Sidebar

Install

npm i starry.some

Weekly Downloads

11

Version

4.0.0

License

MIT

Unpacked Size

4.28 kB

Total Files

9

Last publish

Collaborators

  • seangenabe