angular.copy

Improve this Doc View Source angular.copy

  1. function in module ng

Creates a deep copy of source, which should be an object or an array.

  • If no destination is supplied, a copy of the object or array is created.
  • If a destination is provided, all of its elements (for arrays) or properties (for objects) are