code: function setOption(objA, objB, nameB, targetObj) {
    let nameA = nameB.split('-');
    if (nameA.length > 1) {
      nameA[1] = nameA[1].charAt(0).toUpperCase() + nameA[1].substr(1);
      nameA = nameA.join('');
      targetObj[nameA] = objA[nameA] || objA[nameB] || objB[nameA] || objB[nameB];
    } else {
      targetObj[nameB] = objA[nameB] || objB[nameB];
    }
  }
docs: HELPER FUNCTIONS