What are the uses of ionic compound?

The preserve food (table salt is an ionic compound).