(path: string, key: string)
| 4 | * @param key Another string cursor |
| 5 | */ |
| 6 | export function removeFromLast(path: string, key: string) { |
| 7 | const i = path.lastIndexOf(key) |
| 8 | return i === -1 ? path : path.substring(0, i) |
| 9 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…