ixfx
    Preparing search index...

    Function flow

    Creates a flow of data processors (up to 5 are supported). The flow is encapsulated in a function that accepts an input value an returns an output.

    const p = flow(
    (value:string) => value.toUpperCase(), // Convert to uppercase
    (value:string) => value.at(0) === 'A') // If first letter is an A, return true
    );
    p('apple'); // True

    Each processing function is expected to take in one input value and return one value.