Version 7 was just released!
The docs will be moved here soon.
Visit the external v7 docs site
getTopLevelResources
A method that retrieves only top-level Resources.
.getTopLevelResources()
Will return an array of resources that are not nested under any other resource. Nested child resources are available via the getChildren method.