const removeDuplicatesFromArray = arr => [...new Set(arr.map(el => JSON.stringify(el)))].map(e => JSON.parse(e))