Making copy's of objects in an array with the lodash _.cloneDeep method.
The issue with deep cloning objects in javaScript comes up now and then. Maybe one day I will write a full post on the matter, and all the ways to go about doing it. However this is a post on lodash, and as such I will just be writing about the _.cloneDeep method. I have wrote a post on the lodash clone method before which is okay for shallow copy clones of objects, but if I want to copy nested objects as well the lodash clone deep method should be used, or some other means to make a so called deep copy clone of an object.