The Selection.selectAllChildren() method adds all the children of the specified node to the selection.
Selection.selectAllChildren()
MDN Reference