UNPKG

rambda

Version:

Lightweight and faster alternative to Ramda with included TS definitions

8 lines (5 loc) 106 B
export function tap(fn, x){ if (arguments.length === 1) return _x => tap(fn, _x) fn(x) return x }