Get Name and it's dependent ID from Array JS

I need to get from an Array, the Name and it´s dependent ID. But I'm not getting anything in return, this is the code I'm using:

var url=r30.common.ebasepath+ '/rest/one-users';
    r360.httpClient.get(url, function (result) {
        var nameArr = [];
        var objArr=[];
        result.forEach(obj => {
            nameArr.push(obj.title);
         //   objArr.push(obj.id);
        objArr.push(new setUser(title,id));
        })
          setNameCellEditorValues(nameArr,1);
          setNameCellEditorValues(objArr,9);
      }       
    );


function setUser(title,id)
 {
   var clUser = {};
   clUser.Title = title;
     clUser.Id = id;
    return clUser;
 }
 

Any ideas??

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum