2. Using JSON stringify function
Note that this method will not work if your object contains: Dates, functions, undefined, Infinity, RegExps, Maps, Sets, Blobs, FileLists, ImageDatas, sparse Arrays, Typed Arrays or other complex types.
3. Using lodash deep clone method
4. Angular framework comes with angular.copy function
5. Using jQuery extend function
6. Using Object.assign (this makes a shallow copy, thanks Concerned Citizen for pointing this out in comments)