import { cf } from "https://deno.land/x/domain_functions@v2.6.0/src/index.ts";
const { map } = cf;
It takes a Composable and a predicate to apply a transformation over the resulting data
. It only runs if the function was successfull. When the given function fails, its error is returned wihout changes.
Type Parameters
T extends Composable
Parameters
fn: T
mapper: (res: UnpackResult<ReturnType<T>>) => R