whyczyk
2021-08-31 ba45f770d3439d8a23b89ffdaf5b4c8dcdbfa521
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function splitString(str) {
    if (str) {
        if (str.length == 0) {
            return []
        } else {
            if (str.indexOf(',') != -1) {
                return str
            } else {
                return str.split(',')
            }
        }
    }
 
}
export default splitString