* @ngdoc function * @name angular.extend * @module ng * @kind function * * @description * Extends the destination object `dst` by copying all of the properties from the `src` object(s) * to `dst`. You can specify multiple `src` objects. * * @param {Object} dst Destination object. * @param
(dst)
| 425 | * @returns {Object} Reference to `dst`. |
| 426 | */ |
| 427 | function extend(dst) { |
| 428 | var h = dst.$$hashKey; |
| 429 | forEach(arguments, function(obj) { |
| 430 | if (obj !== dst) { |
| 431 | forEach(obj, function(value, key) { |
| 432 | dst[key] = value; |
| 433 | }); |
| 434 | } |
| 435 | }); |
| 436 | |
| 437 | setHashKey(dst,h); |
| 438 | return dst; |
| 439 | } |
| 440 | |
| 441 | function int(str) { |
| 442 | return parseInt(str, 10); |
no test coverage detected