• Preparing search index...
  • The search index is not available
value-enhancer - v5.5.3
  • value-enhancer
  • index
  • combine

Function combine

  • combine<TValInputs>(valInputs): ReadonlyVal<[...Readonly<{
        [K in string | number | symbol]: ExtractValValue<TValInputs[K<K>]>
    }>[]]>
  • Combines an array of vals into a single val with the array of values.

    Type Parameters

    • TValInputs extends readonly ReadonlyVal<any>[] = ReadonlyVal<any>[]

    Parameters

    • valInputs: readonly [TValInputs]

      An array of vals to combine.

    Returns ReadonlyVal<[...Readonly<{
        [K in string | number | symbol]: ExtractValValue<TValInputs[K<K>]>
    }>[]]>

    A readonly val with the combined values.

    • Defined in src/combine.ts:48
  • combine<TValInputs, TValue>(valInputs, transform, config?): ReadonlyVal<TValue>
  • Combines an array of vals into a single val with transformed value.

    Type Parameters

    • TValInputs extends readonly ReadonlyVal<any>[] = ReadonlyVal<any>[]
    • TValue = any

    Parameters

    • valInputs: readonly [TValInputs]

      An array of vals to combine.

    • transform: CombineValTransform<TValue, [...Readonly<{
          [K in string | number | symbol]: ExtractValValue<TValInputs[K<K>]>
      }>[]]>

      A pure function that takes an array of values and returns a new value.

    • Optional config: ValConfig<TValue>

      custom config for the combined val.

    Returns ReadonlyVal<TValue>

    A readonly val with the transformed values.

    • Defined in src/combine.ts:48

Settings

Theme

value-enhancer - v5.5.3
  • Loading...