code: function pairsToObject(pairs) {
      var result = {};
      pairs.forEach(function (_ref) {
          var _ref2 = _slicedToArray(_ref, 2);
  
          var key = _ref2[0];
          var val = _ref2[1];
  
          result[key] = val;
      });
      return result;
  }
docs: [[K1, V1], [K2, V2]] -> {K1: V1, K2: V2, ...}