It works great for that. It’s also good in automotive for bulb sockets, I’ve used it for that as well. It’s amazing actually, slop some in a socket and next time you pull a bulb it will still look brand new, even if not well protected as the case with antique cars. You would think it might interfere with electrical contact an Vaseline is completely non-conductive, it doesn’t seem to at all. You can also use it on car battery terminals and it will completely stop any corrosion, however I actually use 90W gear oil on those since it attracts less dirt and works as well.
Hard to pick a favorite from the long list.