UNPKG

sf-checklist

Version:
17 lines 426 B
const validateName = (name) => { if ((name + "").length > 2) { return true; } return false; }; function alphabeticalSort(arr) { let arrSorted = arr.sort((a, b) => { return a.trim().toLowerCase().localeCompare(b.trim().toLowerCase()); }); return arrSorted; } const exportFunctions = { validateName, alphabeticalSort }; export default exportFunctions; //# sourceMappingURL=util.js.map