src/Form/Form.js
function findFieldOption(options, field) {
  const flattenedOptions = Util.flatten(options);

  return Util.find(flattenedOptions, function(fieldOption) {
    var isField = fieldOption.name === field;
    if (fieldOption.fieldType === "object" && !isField) {
      return findFieldOption(fieldOption.definition, field);
    }

    return isField;
  });
}
function findFieldOption(options, field) {
  const flattenedOptions = Util.flatten(options);

  return Util.find(flattenedOptions, function(fieldOption) {
    var isField = fieldOption.name === field;
    if (fieldOption.fieldType === "object" && !isField) {
      return findFieldOption(fieldOption.definition, field);
    }

    return isField;
  });
}
function findFieldOption ( options , field ) { const flattenedOptions = Util . flatten ( options ) ; return Util . find ( flattenedOptions , function ( fieldOption ) { var isField = fieldOption . name === field ; if ( fieldOption . fieldType === "object" && ! isField ) { return findFieldOption ( fieldOption . definition , field ) ; } return isField ; } ) ; }
Find a the options for a particular field in the form.
Find a the options for a particular field in the form .