examples/dist/common.js
function getChildMapping(children) {
  if (!children) {
    return children;
  }
  var result = {};
  _react.Children.map(children, function (child) {
    return child;
  }).forEach(function (child) {
    result[child.key] = child;
  });
  return result;
}
function getChildMapping(children) {
  if (!children) {
    return children;
  }
  var result = {};
  _react.Children.map(children, function (child) {
    return child;
  }).forEach(function (child) {
    result[child.key] = child;
  });
  return result;
}
function getChildMapping ( children ) { if ( ! children ) { return children ; } var result = { } ; _react . Children . map ( children , function ( child ) { return child ; } ) . forEach ( function ( child ) { result [ child . key ] = child ; } ) ; return result ; }
Given `this.props.children`, return an object mapping key to child.

@param {*} children `this.props.children`
@return {object} Mapping of key to child
Given this . props . children return an object mapping key to child .