Transforms a function such that it only executes when condition is truthy.
condition
The type of the function to conditionally execute.
The function to conditionally execute.
Optional
The condition to check before executing fn.
fn
The conditionalized function with the same signature as fn.
Transforms a function such that it only executes when
conditionis truthy.