function fillFieldNames(fieldNames) {
  var skipTitle = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;

  var _ref = fieldNames || {},
      label = _ref.label,
      value = _ref.value,
      children = _ref.children;

  var filledNames = {
    value: value || 'value',
    children: children || 'children'
  };

  if (!skipTitle || label) {
    filledNames.label = label || 'label';
  }

  return filledNames;
}
/**
 * Fill `fieldNames` with default field names.
 *
 * @param fieldNames passed props
 * @param skipTitle Skip if no need fill `title`. This is useful since we have 2 name as same title level
 * @returns
 */
Fill `fieldNames` with default field names.
@param fieldNames passed props
@param skipTitle Skip if no need fill `title`. This is useful since we have 2 name as same title level
@returns
Fill ` fieldNames ` with default field names . @param fieldNames passed props @param skipTitle Skip if no need fill ` title ` . This is useful since we have 2 name as same title level @returns
function fillFieldNames(fieldNames) {
  var skipTitle = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
  var _ref = fieldNames || {},
      label = _ref.label,
      value = _ref.value,
      children = _ref.children;
  var filledNames = {
    value: value || 'value',
    children: children || 'children'
  };
  if (!skipTitle || label) {
    filledNames.label = label || 'label';
  }
  return filledNames;
}
function fillFieldNames ( fieldNames ) { var skipTitle = arguments . length > 1 && arguments [ 1 ] !== undefined ? arguments [ 1 ] : false ; var _ref = fieldNames || { } , label = _ref . label , value = _ref . value , children = _ref . children ; var filledNames = { value : value || 'value' , children : children || 'children' } ; if ( ! skipTitle || label ) { filledNames . label = label || 'label' ; } return filledNames ; }
Fill `fieldNames` with default field names.
Fill ` fieldNames ` with default field names .