(whole: Search, part: Search)
| 53 | } |
| 54 | |
| 55 | export function startsWith(whole: Search, part: Search): boolean { |
| 56 | if (!part) return true; |
| 57 | const arrs = [whole, part].map(ensureSearchExpressionGroupArray); |
| 58 | const [wholeArray, partArray] = arrs; |
| 59 | if (partArray.length > wholeArray.length) return false; |
| 60 | for (let i = 0; i < partArray.length; i++) { |
| 61 | if (!compareGroup(wholeArray[i], partArray[i])) return false; |
| 62 | } |
| 63 | return true; |
| 64 | } |
nothing calls this directly
no test coverage detected