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
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
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
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
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
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
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
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