docs: function forEachKeyValue(obj, func) {
    Object.getOwnPropertyNames(obj).forEach(key => {
      let value;
      try {
        value = obj[key];
      } catch(_) {
        // This must be a non-accessible value, like "arguments" in Safari.
        return;
      }
      func(key, value);
    });
  }