Not only survived the Wii U but followed it up with a smash hit. The Switch is now the third best selling console of all time, behind only the Nintendo DS and the PlayStation 2.
Nintendo's secret sauce is their historically-huge (way above average) R&D investment. And for all the slack they get about being too traditional, the one thing I can say about following the company for 20 years is you never know what they're going to do next.
Meanwhile, PlayStation 6, Pixel 9, and iPhone 16 are foregone conclusions.