(array, index, element)
| 12 | } |
| 13 | |
| 14 | export function insertElement(array, index, element) { |
| 15 | return array.slice(0, index).concat([element], array.slice(index)); |
| 16 | } |
| 17 | |
| 18 | export function removeElement(array, index) { |
| 19 | return array.slice(0, index).concat(array.slice(index + 1)); |
no outgoing calls
no test coverage detected
searching dependent graphs…