* @ngdoc function * @name angular.extend * @module ng * @kind function * * @description * Extends the destination object `dst` by copying own enumerable properties from the `src` object(s) * to `dst`. You can specify multiple `src` objects. If you want to preserve original objects, you can do
(dst)
| 403 | * @returns {Object} Reference to `dst`. |
| 404 | */ |
| 405 | function extend(dst) { |
| 406 | var h = dst.$$hashKey; |
| 407 | |
| 408 | for (var i = 1, ii = arguments.length; i < ii; i++) { |
| 409 | var obj = arguments[i]; |
| 410 | if (obj) { |
| 411 | var keys = Object.keys(obj); |
| 412 | for (var j = 0, jj = keys.length; j < jj; j++) { |
| 413 | var key = keys[j]; |
| 414 | dst[key] = obj[key]; |
| 415 | } |
| 416 | } |
| 417 | } |
| 418 | |
| 419 | setHashKey(dst, h); |
| 420 | return dst; |
| 421 | } |
| 422 | |
| 423 | function int(str) { |
| 424 | return parseInt(str, 10); |
no test coverage detected