Use for-in iteration instead of Object.keys.forEach.