I bought my wife a Macbook Pro in 2011 and its still working great, has great performance, and we’ve never had a virus and never had malware. The OS is no longer supported with upgrades and I keep wondering when some of our critical apps like our tax software isn’t supported any more but so far so good.
I never had a PC product last over three and there were always security and virus and malware issues. Maybe its improved, I dunno, but I know if/when this one dies I’m buy another Mac!
My iPad Air2 I bought in 2014 right after this model first came out. My battery is getting funky so I’ll likely retire it to a life as some sort of server in the house.

I have my issues with Apple overall, but you sure as hell can’t beat their performance. They’re the Toyota of compooters!
BKB