That can also charge lithium ion cells but only the small ones up to AA sized. If you get into some other hobby like flashlights with bigger cells, there are bulkier chargers on the market that will charge a NiMH AAA and also a lithium ion 21700.
The IKEA STENKOL charger does all that, at only 9$.
It also has thermal sensors to detect overheating / bad batteries, and will reject reverse inserted or non-rechargeable batteries. The manual lists all the specs.
For some reason lots of manufacturers keep selling super old designs from an era where apparently one IC per battery bay was too expensive. This includes reputable manufacturers and many Panasonic Eneloop models. Blows my mind.
ISDT is pretty solid. I have one of their 4 cell USB C charger that supports AA/AAA NiMH charging. Under $20. Primarily use it to charge my remote batteries.
Mostly Li-ion (flashlight) focussed, but not all. And there's some good multi-chemistry chargers out there.
I have a Maha C9000 (NiMH only) which is very good but overkill feature-wise for most users. And an Enedepots A8 (multi-chemistry) which was good value for its money, but not high quality (eg. CE marking on its label is bullshit, and 1 slot stopped charging so it's now a 3-slot one).
On the smaller and cheaper side, something like this: https://isdt.shop/products/isdt-a4-air-4-bay-aaa-battery-cha...
Or bigger and fancier: https://isdtshop.com/products/isdt-n8
That can also charge lithium ion cells but only the small ones up to AA sized. If you get into some other hobby like flashlights with bigger cells, there are bulkier chargers on the market that will charge a NiMH AAA and also a lithium ion 21700.