Angular copy and extend method Example

$scope.fruitArrayDestination

  1. Mango
  2. Apple

$scope.subjectObjectDestination with extend()

{ "subject": "computer", "name": "Sandeep" } Edit in JS Bin