mobx-bonsai
    Preparing search index...

    Function arrayToSetTransform

    • Transforms an array (with values of type V) into a Set (getter).

      Type Parameters

      • T extends { [k in string | number | symbol]?: null | any[] }

        Type of the containing object

      • K extends string | number | symbol

        Type of the property key in T that will be transformed

      Parameters

      • propName: K

        The name of the property to transform into a Set

      Returns (this: T) => Set<ExtractArrayValue<T[K]>> | Extract<T[K], undefined | null>

      A function that returns a Set backed by the values from the array property