code: function invariant(condition, msg, ...args) {
    if (!condition) {
      throw new Error(util.format(msg, ...args));
    }
  }
docs: TODO: Not sure why this is defined here rather than imported, is it so that it doesn’t get stripped in prod?