It can be one or more than one selected row, the below code can be used to get array of id of selected rows.
var selected = [],
sel = this.selection({type:'row', method:'getSelection'});
for(var i=0; i< sel.length; i++){
selected.push(sel[ i ].rowData['id']);
}
console.log(selected);