here display label name.and value also name.but i want to display label is name and passing the userid for value
var defaultValueArr = [];
Details.map((Det)=>{
Det.name.split(',').map((e)=>{
defaultValueArr.push({ label:e, value: e});
});