angular.copy (API in module ng )

Description

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

Note: this function is used to augment the Object type in Angular expressions. See ng.$filter for more information about Angular arrays.

Usage

angular.copy(source[, destination]);

Parameters

Returns

{*}

The copy or updated destination, if destination was specified.