Newbie question about ohm law

I believe you but then take my imaginary problem as example.

I want to plug a device who require 5v and 10 mA (from the datasheet) to my Arduino +5v output, how do I calculate the resistor I need to use to prevent it to burn ?