Artbobard Name from Selection?

How do I get name of Artboard from selection?

go to this

or like this

function myPluginCommand(selection) {
	var rootnodes = selection.insertionParent.parent;
	//console.log(rootnodes);
	rootnodes.children.forEach(element => {
		//This is ArtBoard
		let artboardname  = element.name;
        }
}

Thanks! Is it possible to grab all dartboards without having a selection? Lets say I want to ignore what is selected and just look at all available artboards?

yes, try to understand this if not ask me