(arr, chunk)
| 132 | } |
| 133 | |
| 134 | export const chunkArray = function (arr, chunk) { |
| 135 | let i |
| 136 | let j |
| 137 | const tmp = [] |
| 138 | for (i = 0, j = arr.length; i < j; i += chunk) { |
| 139 | tmp.push(arr.slice(i, i + chunk)) |
| 140 | } |
| 141 | return tmp |
| 142 | } |
| 143 | |
| 144 | export const clearString = function (str) { |
| 145 | if (!str) return '' |
no test coverage detected