* @ngdoc function * @name angular.extend * @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 {...Object} src Sou
(dst)
| 229 | * @returns {Object} Reference to `dst`. |
| 230 | */ |
| 231 | function extend(dst) { |
| 232 | var h = dst.$$hashKey; |
| 233 | forEach(arguments, function(obj){ |
| 234 | if (obj !== dst) { |
| 235 | forEach(obj, function(value, key){ |
| 236 | dst[key] = value; |
| 237 | }); |
| 238 | } |
| 239 | }); |
| 240 | |
| 241 | setHashKey(dst,h); |
| 242 | return dst; |
| 243 | } |
| 244 | |
| 245 | function int(str) { |
| 246 | return parseInt(str, 10); |
no test coverage detected