commonOption.js 203 B

12345
  1. const getLabel = (options, value, defaultText) => {
  2. let option = options.find((o) => o.value == value);
  3. return option ? option.label : defaultText != null ? defaultText : "";
  4. };
  5. export { getLabel };