How to remove data from another data array that already existed.
for example:
data = [{
name: "james",
device: "device1"
}, {
name: "justine",
device: "device2"
}];
device = [
'device1', 'device2', 'device3', 'device4', 'device5'
];
how to remove the device that already exist?
expected output:
device = ['device3', 'device4', 'device5'];