function uniqueDependencies(dependencies) {

    var result = [ ];
    var map = { };

    dependencies.forEach(function (dependency) {
        if (!map[ dependency.absolute ]) {
            result.push(dependency);
            map[ dependency.absolute ] = 1;
        }
    });

    return result;

}
function uniqueDependencies(dependencies) {

    var result = [ ];
    var map = { };

    dependencies.forEach(function (dependency) {
        if (!map[ dependency.absolute ]) {
            result.push(dependency);
            map[ dependency.absolute ] = 1;
        }
    });

    return result;

}
function uniqueDependencies ( dependencies ) { var result = [ ] ; var map = { } ; dependencies . forEach ( function ( dependency ) { if ( ! map [ dependency . absolute ] ) { result . push ( dependency ) ; map [ dependency . absolute ] = 1 ; } } ) ; return result ; }
依赖去重

@inner
@param {Array} dependencies
@return {Array}
依赖去重