(items1: T[], items2: T[])
| 18 | } |
| 19 | |
| 20 | export function arrayStartsWith<T>(items1: T[], items2: T[]) { |
| 21 | return items1.length >= items2.length && arraysEqual(items1.slice(0, items2.length), items2); |
| 22 | } |
| 23 | |
| 24 | export function arrayContainsArray<T>(haystack: T[], needle: T[]): boolean { |
| 25 | // Loop over valid starting points for the subarray |
no test coverage detected