Function extractKeysAndValues

  • Extracts the keys and values from a record and returns them as arrays.

    Type Parameters

    • T extends Record<string, unknown>

      Type of the record being passed in.

    Parameters

    • record: T

      The record from which to extract keys and values.

    Returns ReturnTypeForValuesFromRecord<keyof T & string, T[keyof T]>

    An object containing the keys and values arrays.

Generated using TypeDoc