code: function invertObject(o) {
    var result = {};
    for (let pair of objectPairs(o)) {
      let [key, val] = pair;
      result[val] = key;
    }
    return result;
  }
docs: "Invert" an object, swapping keys and values.