How can I find all values in an array A - where the key is not in array B ( a bit like a SQL Not In ) . I don't want to compare the whole array , just one property - but I do want to return all fields for the differences using lodash ( or simpler )
const arrayA = [
{ sku:"1", name:"one"},
{ sku:"2", name:"two"}
]
const arrayB = [
{ sku:"1", name:"One Product"},
{ sku:"2", name:"Two Product"},
{ sku:"3", name:"Three Product"}
]
The results should be :
{ sku:"3", name:"Three Product"}
Thank you for your time.