some

abstract fun some(cbk: Value): JsPromise<Boolean>
abstract fun some(cbk: () -> Boolean?): JsPromise<Boolean>

Check if any item in this stream matches the given predicate.

Return

A promise that resolves with the result.

Parameters

cbk

The predicate to check.


abstract fun some(cbk: Value, options: Value): JsPromise<Boolean>

Check if any item in this stream matches the given predicate.

Return

A promise that resolves with the result.

Parameters

cbk

The predicate to check.

options

The options for the some operation.


abstract fun some(options: ReadableSomeOptions, cbk: () -> Boolean?): JsPromise<Boolean>

Check if any item in this stream matches the given predicate.

Return

A promise that resolves with the result.

Parameters

options

The options for the some operation.

cbk

The predicate to check.