whyczyk
2021-10-28 31df8a64d5e9d454ceadc4602d344f9b47b65a63
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