code: function addDevices(deviceArr) {
        deviceArr.forEach(function(el, i) {
          self.devices.push({
            name: deviceArr[i]['name'],
            deviceId: deviceArr[i]['id']
          });
        });
      }
docs: Create array of available devices from response.