Skip to content

Function: pipe() ​

pipe<T>(value): object

Defined in: src/pipe.ts:7

Functional pipe helper inspired by Laravel pipelines.

Type Parameters ​

T ​

T

Parameters ​

value ​

T

The initial value to pipe

Returns ​

An object with through and value methods

through() ​

through<U>(fn): object

Pass the value through a callback.

Type Parameters ​

U ​

U

Parameters ​

fn ​

(input) => U

The callback function

Returns ​

A new pipe instance with the result

through() ​

through<U>(fn): object

Pass the value through a callback.

Type Parameters ​
U ​

U

Parameters ​
fn ​

(input) => U

The callback function

Returns ​

A new pipe instance with the result

through() ​

through<U>(fn): object

Pass the value through a callback.

Type Parameters ​
U ​

U

Parameters ​
fn ​

(input) => U

The callback function

Returns ​

A new pipe instance with the result

through() ​

through<U>(fn): object

Pass the value through a callback.

Type Parameters ​
U ​

U

Parameters ​
fn ​

(input) => U

The callback function

Returns ​

A new pipe instance with the result

through() ​

through<U>(fn): object

Pass the value through a callback.

Type Parameters ​
U ​

U

Parameters ​
fn ​

(input) => U

The callback function

Returns ​

A new pipe instance with the result

through() ​

through<U>(fn): object

Pass the value through a callback.

Type Parameters ​
U ​

U

Parameters ​
fn ​

(input) => U

The callback function

Returns ​

A new pipe instance with the result

through() ​

through<U>(fn): object

Pass the value through a callback.

Type Parameters ​
U ​

U

Parameters ​
fn ​

(input) => U

The callback function

Returns ​

A new pipe instance with the result

through() ​

through<U>(fn): object

Pass the value through a callback.

Type Parameters ​
U ​

U

Parameters ​
fn ​

(input) => U

The callback function

Returns ​

A new pipe instance with the result

through() ​

through<U>(fn): object

Pass the value through a callback.

Type Parameters ​
U ​

U

Parameters ​
fn ​

(input) => U

The callback function

Returns ​

A new pipe instance with the result

through() ​

through<U>(fn): object

Pass the value through a callback.

Type Parameters ​
U ​

U

Parameters ​
fn ​

(input) => ...

The callback function

Returns ​

A new pipe instance with the result

through() ​

through<U>(fn): ...

Pass the value through a callback.

Type Parameters ​
U ​

U

Parameters ​
fn ​

...

The callback function

Returns ​

...

A new pipe instance with the result

value() ​

value(): ...

Get the current value of the pipe.

Returns ​

...

The current value

value() ​

value(): U

Get the current value of the pipe.

Returns ​

U

The current value

value() ​

value(): U

Get the current value of the pipe.

Returns ​

U

The current value

value() ​

value(): U

Get the current value of the pipe.

Returns ​

U

The current value

value() ​

value(): U

Get the current value of the pipe.

Returns ​

U

The current value

value() ​

value(): U

Get the current value of the pipe.

Returns ​

U

The current value

value() ​

value(): U

Get the current value of the pipe.

Returns ​

U

The current value

value() ​

value(): U

Get the current value of the pipe.

Returns ​

U

The current value

value() ​

value(): U

Get the current value of the pipe.

Returns ​

U

The current value

value() ​

value(): U

Get the current value of the pipe.

Returns ​

U

The current value

value() ​

value(): T

Get the current value of the pipe.

Returns ​

T

The current value

Documentation of 1.0.13 , built from cf61d3b on 1.0.13 by pipeline #2985011498 on 2026-10-21.