(path: string, base: string)
| 1657 | } |
| 1658 | |
| 1659 | export function stripBase(path: string, base: string): string { |
| 1660 | if (path === base) { |
| 1661 | return '/' |
| 1662 | } |
| 1663 | const devBase = withTrailingSlash(base) |
| 1664 | return path.startsWith(devBase) ? path.slice(devBase.length - 1) : path |
| 1665 | } |
| 1666 | |
| 1667 | export function arrayEqual(a: any[], b: any[]): boolean { |
| 1668 | if (a === b) return true |
no test coverage detected