npm.io
12.13.0 • Published 5 years ago

@unction/aside

Licence
SEE LICENSE IN LICENSE
Version
12.13.0
Deps
1
Size
15 kB
Vulns
0
Weekly
0

@unction/aside

Tests Stability Dependencies

Array<MapperFunctionType<A, B>> => A => A

Takes a stack of functions, like pipe(), but always returns the second argument.

pipe(
  aside([(value) => value.toLowerCase(), console.log]),
  processData
)(
  "Hello, world"
) // "Hello, world"

But also logs:

"hello, world"

Keywords