Function indexSignatureEntriesToArray

  • Converts an index signature' keys and values converted by applying the given mapping function into an array.

    Type Parameters

    • T

    • U

    Parameters

    • indexSignature: {
          [id: string]: T;
      }

      The index signature to convert.

      • [id: string]: T
    • mapper: ((key, value) => U)

      The mapper function.

        • (key, value): U
        • Parameters

          • key: string
          • value: T

          Returns U

    Returns U[]

    an array corresponding to all entries of the given index signature using the given mapper function.

Generated using TypeDoc