optionEx.js 223 B

123456
  1. const getLabel = (options, value, defaultText) => {
  2. let option = options.find(o => o.value === value)
  3. // console.info(option)
  4. return option ? option.text : defaultText != null ? defaultText : ''
  5. }
  6. export { getLabel }