two dimensional array object in javascript code example
Example: two dimensional array object in javascript
const IDs = Object.entries(formData?.Recipient).map(([k, v]) => v.map(item => item?.UserID));
this.setState({
selectedUser : IDs.flat()
})
console.log(IDs.flat())