lib/flow.js
/**
 * Copies properties from src to dest, potentially overwriting previously defined properties.
 * @param src
 * @param dest
 * @returns {*}
 */
Copies properties from src to dest, potentially overwriting previously defined properties.
@param src
@param dest
@returns {*}
Copies properties from src to dest potentially overwriting previously defined properties . @param src @param dest @returns { * }
function mixin(src, dest) {
    var sources = Array.prototype.slice.call(arguments);
    dest = sources.pop();
    sources.forEach(function (source) {
        if (Object.isObject(source)) {
            Object.getOwnPropertyNames(source).forEach(function(name) {
                Object.defineProperty(dest, name, Object.getOwnPropertyDescriptor(source, name));
            });
        }
    });
    return dest;
}
function mixin ( src , dest ) { var sources = Array . prototype . slice . call ( arguments ) ; dest = sources . pop ( ) ; sources . forEach ( function ( source ) { if ( Object . isObject ( source ) ) { Object . getOwnPropertyNames ( source ) . forEach ( function ( name ) { Object . defineProperty ( dest , name , Object . getOwnPropertyDescriptor ( source , name ) ) ; } ) ; } } ) ; return dest ; }
Copies properties from src to dest, potentially overwriting previously defined properties.
Copies properties from src to dest potentially overwriting previously defined properties .