inject function
dynamic
inject(
- dynamic a1,
- dynamic index,
- dynamic a2
Implementation
inject(a1, index, a2) {
return a1.slice(0, index).concat(a2).concat(a1.slice(index));
}