angular.copy

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 angular.module.ng.$filter for more information about Angular arrays.

Usage

copy(source[, destination]);

Parameters

Returns

{*}

The copy or updated destination, if destination was specified.