(arr, size)
| 23 | } |
| 24 | exports.reverseInPlace = reverseInPlace; |
| 25 | function chopInputArray(arr, size) { |
| 26 | var res = []; |
| 27 | var startIndex = 0; |
| 28 | var endIndex = size - 1; |
| 29 | while (startIndex < arr.length) { |
| 30 | var r = arr.slice(startIndex, endIndex + 1); |
| 31 | res.push(r); |
| 32 | startIndex += size; |
| 33 | endIndex += size; |
| 34 | } |
| 35 | return res; |
| 36 | } |
| 37 | exports.chopInputArray = chopInputArray; |
nothing calls this directly
no outgoing calls
no test coverage detected