Type Alias MapMultiOpts<V>

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

Type Parameters

  • V

Type declaration

  • Optional ReadonlygroupBy?: ((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
    }
      • (value): string
      • Parameters

        • value: V

        Returns string