AngularJS copy function is intended to creates a deep copy of source object or array and assign it to destination where destination is optional.
Syntax