var filterArray = courseArray.reduce((accumalator, current) => { if(!accumalator.some(item => item.id === current.id && item.name === current.name)) { accumalator.push(current); } return accumalator; },[]); console.log(filterArray)