every

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

Check if all items in this stream match the given predicate.

Return

A promise that resolves with the result.

Parameters

cbk

The predicate to check.


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

Check if all items in this stream match the given predicate.

Return

A promise that resolves with the result.

Parameters

cbk

The predicate to check.

options

The options for the every operation.


abstract fun every(options: ReadableEveryOptions, cbk: () -> Boolean?): JsPromise<Boolean>

Check if all items in this stream match the given predicate.

Return

A promise that resolves with the result.

Parameters

options

The options for the every operation.

cbk

The predicate to check.