docs: function flattenChildren(children, selfDebugID) {
    if (children == null) {
      return children;
    }
    var result = {};
  
    if ("development" !== 'production') {
      traverseAllChildren(children, function (traverseContext, child, name) {
        return flattenSingleChildIntoContext(traverseContext, child, name, selfDebugID);
      }, result);
    } else {
      traverseAllChildren(children, flattenSingleChildIntoContext, result);
    }
    return result;
  }