res/sources/array.js
function (name) {
            var dependencies = this.byName(name).getDependencies(),
                names = this.getNames(),
                minIndex = 1; // 0 being boot
            dependencies.forEach(function (dependencyName) {
                var index = names.indexOf(dependencyName);
                ++index;
                if (index > minIndex) {
                    minIndex = index;
                }
            });
            return minIndex;
        }
function (name) {
            var dependencies = this.byName(name).getDependencies(),
                names = this.getNames(),
                minIndex = 1; // 0 being boot
            dependencies.forEach(function (dependencyName) {
                var index = names.indexOf(dependencyName);
                ++index;
                if (index > minIndex) {
                    minIndex = index;
                }
            });
            return minIndex;
        }
function ( name ) { var dependencies = this . byName ( name ) . getDependencies ( ) , names = this . getNames ( ) , minIndex = 1 ; // 0 being boot dependencies . forEach ( function ( dependencyName ) { var index = names . indexOf ( dependencyName ) ; ++ index ; if ( index > minIndex ) { minIndex = index ; } } ) ; return minIndex ; }
Based on its dependencies, compute the minimum index of the module.

@param {String} name Source Name
@return {Number} Source index before which the source can't be moved
Based on its dependencies compute the minimum index of the module .