How would I filter out the following Titles using .filter? I'm expecting the output to be something like: {"Capuchin Monkey", "Capybara"} I'm working with JSON that looks like this:
{
  "d": {
    "results": [
      {
        "__metadata": {
          "id": "N/A",
          "type": "N/A"
        },
        "Courses": {
          "results": [
            {
              "__metadata": {
                "id": "N/A",
                "type": "N/A"
              },
              "Title": "Capuchin Monkey"
            },
            {
              "__metadata": {
                "id": "N/A",
                "type": "N/A"
              },
              "Title": "Capybara"
            },
JS snippet:
// Courses/Title is what I'm interested in
    axios.get([redacted] + "/getByTitle('Categories')/items?$select=Title,Description,Courses/Title,SortOrder&$expand=Courses&$orderby=Title&$top=1000",
                {
                    method: "GET",
                    credentials: "include",
                    mode: "no-cors",
                    headers: {
                        "Accept": "application/json; odata=verbose"
                    }
                }),
   // irrelevant code
        ]).then(axios.spread((cat, lib, admn) => {
            _categories = cat.data.d.results; // -------- //
            this.loadCategories();
        })).catch(error => {
            console.log(error);
        });
getCategories(){ 
        return _categories;
    }
loadCategories(){ 
        let categs = _categories,
            trainingCrs = _categories.d.results.filter(x => {
                return {
                    "crsTitle": x.Courses.results.Title // code smell
                }
            });
 
     
     
    