You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

functions.js 360B

1234567891011
  1. // @flow
  2. /**
  3. * Returns the field value in a platform generic way.
  4. *
  5. * @param {Object | string} fieldParameter - The parameter passed through the change event function.
  6. * @returns {string}
  7. */
  8. export function getFieldValue(fieldParameter: Object | string) {
  9. return typeof fieldParameter === 'string' ? fieldParameter : fieldParameter?.target?.value;
  10. }