1 2 3 4 5 6 7 8 9 10 11 12 | 2x 10x 1x 1x 9x 2x 2x 7x | module.exports.validateType = function(type) { if (type.length === 0 || type === null) { console.warn('Missing DropdownAlert type. Available types: info, warn, error or custom'); return false; } if (type != 'info' && type != 'warn' && type != 'error' && type != 'custom' && type != 'success') { console.warn('Invalid DropdownAlert type. Available types: info, warn, error, success, or custom'); return false; } return true; }; |