Skip to main content

Function: pipe()

Returns the result of piping value through the given functions.

Example

console.log(
pipe(
`sloth`,
name => `${name.toUpperCase()}!`,
text => [text, text, text],
array => array.join(` `),
),
)
// => SLOTH! SLOTH! SLOTH!

pipe(value)

pipe<Value>(value): Value

Returns the result of piping value through the given functions.

Type Parameters

Value

Parameters

value: Value

Returns

Value

Example

console.log(
pipe(
`sloth`,
name => `${name.toUpperCase()}!`,
text => [text, text, text],
array => array.join(` `),
),
)
// => SLOTH! SLOTH! SLOTH!

Defined in

core.d.ts:77

pipe(value, fn)

pipe<A, B>(value, fn): B

Returns the result of piping value through the given functions.

Type Parameters

A

B

Parameters

value: A

fn

Returns

B

Example

console.log(
pipe(
`sloth`,
name => `${name.toUpperCase()}!`,
text => [text, text, text],
array => array.join(` `),
),
)
// => SLOTH! SLOTH! SLOTH!

Defined in

core.d.ts:78

pipe(value, fn1, fn2)

pipe<A, B, C>(value, fn1, fn2): C

Returns the result of piping value through the given functions.

Type Parameters

A

B

C

Parameters

value: A

fn1

fn2

Returns

C

Example

console.log(
pipe(
`sloth`,
name => `${name.toUpperCase()}!`,
text => [text, text, text],
array => array.join(` `),
),
)
// => SLOTH! SLOTH! SLOTH!

Defined in

core.d.ts:79

pipe(value, fn1, fn2, fn3)

pipe<A, B, C, D>(value, fn1, fn2, fn3): D

Returns the result of piping value through the given functions.

Type Parameters

A

B

C

D

Parameters

value: A

fn1

fn2

fn3

Returns

D

Example

console.log(
pipe(
`sloth`,
name => `${name.toUpperCase()}!`,
text => [text, text, text],
array => array.join(` `),
),
)
// => SLOTH! SLOTH! SLOTH!

Defined in

core.d.ts:80

pipe(value, fn1, fn2, fn3, fn4)

pipe<A, B, C, D, E>(value, fn1, fn2, fn3, fn4): E

Returns the result of piping value through the given functions.

Type Parameters

A

B

C

D

E

Parameters

value: A

fn1

fn2

fn3

fn4

Returns

E

Example

console.log(
pipe(
`sloth`,
name => `${name.toUpperCase()}!`,
text => [text, text, text],
array => array.join(` `),
),
)
// => SLOTH! SLOTH! SLOTH!

Defined in

core.d.ts:86

pipe(value, fn1, fn2, fn3, fn4, fn5)

pipe<A, B, C, D, E, F>(value, fn1, fn2, fn3, fn4, fn5): F

Returns the result of piping value through the given functions.

Type Parameters

A

B

C

D

E

F

Parameters

value: A

fn1

fn2

fn3

fn4

fn5

Returns

F

Example

console.log(
pipe(
`sloth`,
name => `${name.toUpperCase()}!`,
text => [text, text, text],
array => array.join(` `),
),
)
// => SLOTH! SLOTH! SLOTH!

Defined in

core.d.ts:93

pipe(value, fn1, fn2, fn3, fn4, fn5, fn6)

pipe<A, B, C, D, E, F, G>(value, fn1, fn2, fn3, fn4, fn5, fn6): G

Returns the result of piping value through the given functions.

Type Parameters

A

B

C

D

E

F

G

Parameters

value: A

fn1

fn2

fn3

fn4

fn5

fn6

Returns

G

Example

console.log(
pipe(
`sloth`,
name => `${name.toUpperCase()}!`,
text => [text, text, text],
array => array.join(` `),
),
)
// => SLOTH! SLOTH! SLOTH!

Defined in

core.d.ts:101

pipe(value, fn1, fn2, fn3, fn4, fn5, fn6, fn7)

pipe<A, B, C, D, E, F, G, H>(value, fn1, fn2, fn3, fn4, fn5, fn6, fn7): H

Returns the result of piping value through the given functions.

Type Parameters

A

B

C

D

E

F

G

H

Parameters

value: A

fn1

fn2

fn3

fn4

fn5

fn6

fn7

Returns

H

Example

console.log(
pipe(
`sloth`,
name => `${name.toUpperCase()}!`,
text => [text, text, text],
array => array.join(` `),
),
)
// => SLOTH! SLOTH! SLOTH!

Defined in

core.d.ts:110

pipe(value, fn1, fn2, fn3, fn4, fn5, fn6, fn7, fn8)

pipe<A, B, C, D, E, F, G, H, I>(value, fn1, fn2, fn3, fn4, fn5, fn6, fn7, fn8): I

Returns the result of piping value through the given functions.

Type Parameters

A

B

C

D

E

F

G

H

I

Parameters

value: A

fn1

fn2

fn3

fn4

fn5

fn6

fn7

fn8

Returns

I

Example

console.log(
pipe(
`sloth`,
name => `${name.toUpperCase()}!`,
text => [text, text, text],
array => array.join(` `),
),
)
// => SLOTH! SLOTH! SLOTH!

Defined in

core.d.ts:120

pipe(value, fn1, fn2, fn3, fn4, fn5, fn6, fn7, fn8, fn9)

pipe<A, B, C, D, E, F, G, H, I, J>(value, fn1, fn2, fn3, fn4, fn5, fn6, fn7, fn8, fn9): J

Returns the result of piping value through the given functions.

Type Parameters

A

B

C

D

E

F

G

H

I

J

Parameters

value: A

fn1

fn2

fn3

fn4

fn5

fn6

fn7

fn8

fn9

Returns

J

Example

console.log(
pipe(
`sloth`,
name => `${name.toUpperCase()}!`,
text => [text, text, text],
array => array.join(` `),
),
)
// => SLOTH! SLOTH! SLOTH!

Defined in

core.d.ts:131