The quickest way is to take your foot of the excellerator and steer the car back into a straight line. Don't brake as this will make you spin out more.
If you are spinning out due to drugs, don't take them anymore - drugs are bad OK.
If you are spinning out on your sailboard than listen to the other guys posts. Try to do a little chop hop and bring the board back under you.