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 => {
         //   objArr.push(;
        objArr.push(new setUser(title,id));

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