src/index.js
function getChildResources(resource){
        var result = [], children = _resources[resource].children;
        children.forEach(function (child) {
            var childReturn = getChildResources(child);
            childReturn.push(child);
            result = result.concat(childReturn);
        });

        return result;
    }
function getChildResources(resource){
        var result = [], children = _resources[resource].children;
        children.forEach(function (child) {
            var childReturn = getChildResources(child);
            childReturn.push(child);
            result = result.concat(childReturn);
        });

        return result;
    }
function getChildResources ( resource ) { var result = [ ] , children = _resources [ resource ] . children ; children . forEach ( function ( child ) { var childReturn = getChildResources ( child ) ; childReturn . push ( child ) ; result = result . concat ( childReturn ) ; } ) ; return result ; }
Returns all child resources from the given resource.

@param {string} resource
@return []
Returns all child resources from the given resource .