I want to remove all the duplicate elements from the following array of objects and form a new array.
let arr = [{item: 'abc'},{item: 'def'},{item: 'abc'},{item: 'ghi'}];
expected output:
let newArr = [{item: 'abc'},{item: 'def'},{item: 'ghi'}];