(array, index, itemToAdd)
| 23273 | return copy; |
| 23274 | } |
| 23275 | function addElementAtIndex(array, index, itemToAdd) { |
| 23276 | var copy = array.slice(); |
| 23277 | copy.splice(index, 0, itemToAdd); |
| 23278 | return copy; |
| 23279 | } |
| 23280 | function flatten(array) { |
| 23281 | var result = []; |
| 23282 | array.forEach(function(item) { |
nothing calls this directly
no outgoing calls
no test coverage detected