code: function objectFromPairs(pairs) {
    var result = {};
  
    for (let i = 0, len = pairs.length; i < len; i++) {
      let pair = pairs[i];
      result[pair[0]] = pair[1];
    }
  
    return result;
  }
docs: Create an object from a list of `[key, val]` pairs.