Deep copies an object in Javascript through the use of recursion.