• Return the list of keys of the given record that satisfy the isValidKey predicate.

    Type Parameters

    • TKey extends string

    Parameters

    • record: Partial<Record<TKey, unknown>>
    • isValidKey: ((key) => key is TKey)
        • (key): key is TKey
        • Parameters

          • key: string

          Returns key is TKey

    Returns TKey[]

    Array of valid keys