@eagleoutice/flowr - v2.10.1
    Preparing search index...

    Variable RecordConst

    Record: {
        map<K1 extends string, K2 extends string, V1, V2>(
            this: void,
            object: Record<K1, V1>,
            callbackfn: (
                entry: [K1, V1],
                index: number,
                entries: [K1, V1][],
            ) => [K2, V2],
        ): Record<K2, V2>;
        mapKeys<K1 extends string, K2 extends string, V>(
            this: void,
            object: Record<K1, V>,
            callbackfn: (key: K1, index: number, entries: [K1, V][]) => K2,
        ): Record<K2, V>;
        mapProperties<K extends string, V1, V2>(
            this: void,
            object: Record<K, V1>,
            callbackfn: (value: V1, index: number, entries: [K, V1][]) => V2,
        ): Record<K, V2>;
    } = ...

    Helper for transforming records.

    Type Declaration

    • map: function
      • Transforms a record by applying a callback function to each key-value pair in the record.

        Type Parameters

        • K1 extends string
        • K2 extends string
        • V1
        • V2

        Parameters

        • this: void
        • object: Record<K1, V1>

          The record that should be transformed.

        • callbackfn: (entry: [K1, V1], index: number, entries: [K1, V1][]) => [K2, V2]

          The callback function that transforms each key-value pair of the record.

        Returns Record<K2, V2>

    • mapKeys: function
      • Transforms a record by applying a callback function to each key in the record.

        Type Parameters

        • K1 extends string
        • K2 extends string
        • V

        Parameters

        • this: void
        • object: Record<K1, V>

          The record that should be transformed.

        • callbackfn: (key: K1, index: number, entries: [K1, V][]) => K2

          The callback function that transforms each key of the record.

        Returns Record<K2, V>

    • mapProperties: function
      • Transforms a record by applying a callback function to each property value in the record.

        Type Parameters

        • K extends string
        • V1
        • V2

        Parameters

        • this: void
        • object: Record<K, V1>

          The record that should be transformed.

        • callbackfn: (value: V1, index: number, entries: [K, V1][]) => V2

          The callback function that transforms each property value of the record.

        Returns Record<K, V2>