Detection of ionic compounds in the body is typically carried out using techniques such as mass spectrometry and ion chromatography. These methods allow for the precise measurement of ion concentrations in biological samples, aiding in the diagnosis and treatment of toxicological conditions.