(arr: any[], index: number, newItem: any[])
| 8 | ]; |
| 9 | |
| 10 | export const insertMulti = (arr: any[], index: number, newItem: any[]) => !index || index <= 0 ? [ |
| 11 | ...newItem, |
| 12 | ...arr, |
| 13 | ] : [ |
| 14 | ...arr.slice(0, index), |
| 15 | ...newItem, |
| 16 | ...arr.slice(index), |
| 17 | ]; |
| 18 | |
| 19 | export const uniq = (a: any[]) => [...new Set(a)]; |
| 20 | export const uniqCaseInsensitive = (a: string[]) => [ |
no test coverage detected