I have these Javascript lines :
const record = {};
const parts = ['deviceId-abc', 'messagesId-def'];
record.deviceId = parts[0];
record.messageId = parts[1];
I have a linter error prefer-destructuring on the last two lines but I am not sure how I can both destructure an array and assign the value to an object property.
thanks,