src/assets/units/function/splitString.js
@@ -1,5 +1,15 @@ function splitString(str) { if (str.length == 0) return [] else return str.split(',') if (str) { if (str.length == 0) { return [] } else { if (str.indexOf(',') != -1) { return str } else { return str.split(',') } } } } export default splitString export default splitString