mapKeys({ firstName: 'Alice' }, k => k.toLowerCase())
// β { firstname: 'Alice' }mapKeys transforms each key in an object using a mapping function, preserving the values.
Challenge: Implement mapKeys<T>(obj: Record<string, T>, fn: (k: string) => string): Record<string, T> transforming every key while keeping values.
mapKeys({ a: 1, b: 2 }, k => k.toUpperCase()) // β { A: 1, B: 2 }