• Takes an array and a set of functions defined in an object. Each function in the object is applied to all items in the array, creating a new object where each key corresponds to the keys in the input object and the values are arrays of the defined values returned by each function.

    Type Parameters

    • TItems extends any[]

      The type of the array elements.

    • TMapGroupEntries extends MapGroupEntries<TItems>

      The type of the object containing the transformation functions.

    Parameters

    • items: TItems

      The array of items to process.

    • fns: TMapGroupEntries

      An object where each key is associated with a function that processes items of the array.

    Returns {
        [K in keyof TMapGroupEntries]: Exclude<ReturnType<TMapGroupEntries[K]>, undefined>[]
    }

    An object where each key corresponds to the input object's keys and the values are arrays of the results returned by the corresponding function, excluding undefined.

Generated using TypeDoc