Recursively wraps a function with a wrapper function at all levels.
Function to wrap.
Wrapper function.
A new wrapped function.
const fn = (x: number) => x + 1;const wrapped = wrapDeep(fn, f => (...args) => f(...args) * 2);wrapped(2); // 6 Copy
const fn = (x: number) => x + 1;const wrapped = wrapDeep(fn, f => (...args) => f(...args) * 2);wrapped(2); // 6
1.2.0
Recursively wraps a function with a wrapper function at all levels.