Can someone help me create a filterStringFields
function that accepts an object as input and outputs a new object containing only string-type fields? Here are some examples:
Input: { name: 'John', age: 25, city: 'New York' }
Output: { name: 'John', city: 'New York' }
Input: { isActive: true, score: 100 }
Output: {}