ixfx
    Preparing search index...

    Type Alias MapMultiOpts<V>

    type MapMultiOpts<V> = {
        groupBy?: (value: V) => string;
    }

    Type Parameters

    • V
    Index

    Properties

    Properties

    groupBy?: (value: V) => string

    Returns a group for values added via addValue. Eg. maybe you want to group values in the shape {name: 'Samantha' city: 'Copenhagen'} by city:

    const opts = {
    groupBy: (v) => v.city
    }