function filterKeywords(insertArrayObjects){
  let filteredKeywords = [];
  let filteredObjects =[];

  insertArrayObjects.forEach(element => {
    if (filteredKeywords.includes(element.keyword) === false){
      filteredKeywords.push(element.keyword);
      filteredObjects.push(element);
    }
  });
  return filteredObjects;
}
//Filters keywords, returns array with unique objects

Filters keywords, returns array with unique objects
Filters keywords returns array with unique objects
function filterKeywords(insertArrayObjects){
  let filteredKeywords = [];
  let filteredObjects =[];
  insertArrayObjects.forEach(element => {
    if (filteredKeywords.includes(element.keyword) === false){
      filteredKeywords.push(element.keyword);
      filteredObjects.push(element);
    }
  });
  return filteredObjects;
}
function filterKeywords ( insertArrayObjects ) { let filteredKeywords = [ ] ; let filteredObjects = [ ] ; insertArrayObjects . forEach ( element => { if ( filteredKeywords . includes ( element . keyword ) === false ) { filteredKeywords . push ( element . keyword ) ; filteredObjects . push ( element ) ; } } ) ; return filteredObjects ; }
Filters keywords, returns array with unique objects
Filters keywords returns array with unique objects