Sometimes you may require to create copy of one or more source objects into the destination object (also called shallow copy). AngularJS extend function does the same thing. This function takes destination object and one or more source object that you want to copy into destination object var obj = angular.extend({}, obj1, obj2).
NOTE: angular.copy() is slower than angular.extend()
Syntax