How to loop though Record<K, T>
问题 I have Records type of Record: export interface List { name: string; title: string; } export type RecordType = 'recordOne' | 'recordTwo' | 'recordThree'; export const Records: Record<RecordType, List> = { recordOne: { name: 'Name1', title: 'Ausi bere ut erit adeo enim an suae' }, recordTwo: { name: 'Name2', title: 'Petebat proprie suo methodo' }, recordThree: { name: 'Name3', title: 'Petebat proprie suo methodo inscitiae' } } I want to search for record with specific text but in order to do