index.sjs 388 B

12345678910111213141516171819
  1. var antmove_export = {};
  2. /* eslint-disable */
  3. function displayTitle(item) {
  4. if (item.title) {
  5. return item.title;
  6. }
  7. var match = item.options.filter(function (option) {
  8. return option.value === item.value;
  9. });
  10. var displayTitle = match.length ? match[0].text : '';
  11. return displayTitle;
  12. }
  13. antmove_export = {
  14. displayTitle: displayTitle
  15. };
  16. export default antmove_export;