* Extends the destination object `dst` by copying all of the properties from * the `src` object(s) to `dst`. You can specify multiple `src` objects. * @function * @param {Object} dst Destination object. * @param {...Object} src Source object(s). * @returns {Object} Reference to `dst`.
(dst, src)
| 1581 | * @returns {Object} Reference to `dst`. |
| 1582 | */ |
| 1583 | function extend(dst, src) { |
| 1584 | each(arguments, function(obj) { |
| 1585 | if (obj !== dst) { |
| 1586 | each(obj, function(value, key){ |
| 1587 | dst[key] = value; |
| 1588 | }); |
| 1589 | } |
| 1590 | }); |
| 1591 | return dst; |
| 1592 | } |
| 1593 | Flow.extend = extend; |
| 1594 | |
| 1595 | /** |