sf-checklist
Version:
Superflows Checklist Component
17 lines • 426 B
JavaScript
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