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

    Variable RecordConst

    Record: {
        entries<K extends string, V>(
            this: void,
            object: Partial<Record<K, V>>,
        ): [K, V][];
        keys<K extends string>(
            this: void,
            object: Partial<Record<K, unknown>>,
        ): K[];
        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>;
        values<V>(this: void, object: Partial<Record<string, V>>): V[];
    } = ...

    Helper for transforming records.

    Type Declaration

    • entries: function
      • Returns an array of the key-value pairs of the properties of a record.

        Type Parameters

        • K extends string
        • V

        Parameters

        • this: void
        • object: Partial<Record<K, V>>

          The record to get the properties from.

        Returns [K, V][]

    • keys: function
      • Returns an array of the names of the properties of a record.

        Type Parameters

        • K extends string

        Parameters

        • this: void
        • object: Partial<Record<K, unknown>>

          The record to get the property names from.

        Returns K[]

    • 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>

    • values: function
      • Returns an array of the values of the properties of a record.

        Type Parameters

        • V

        Parameters

        • this: void
        • object: Partial<Record<string, V>>

          The record to get the property values from.

        Returns V[]