Function indexSignatureMapValues

  • Apply the provided mapping function to all values of the given index signature, and extract all values into an array.

    Type Parameters

    • T

    • U

    Parameters

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

      The index signature to map.

      • [id: string]: T
    • mapper: ((element) => U)

      The mapper function.

        • (element): U
        • Parameters

          • element: T

          Returns U

    • Optional filter: ((element) => boolean)

      (optional) A filter predicate used to filter out unwanted values.

        • (element): boolean
        • Parameters

          • element: T

          Returns boolean

    Returns {
        [id: string]: U;
    }

    the result array of mapped values.

    • [id: string]: U

Generated using TypeDoc