(str)
| 8 | const CanSelectPathPrefix = 'CanSelectPath-'; |
| 9 | |
| 10 | function deleteLastObject(str) { |
| 11 | return str |
| 12 | .split('.') |
| 13 | .slice(0, -1) |
| 14 | .join('.'); |
| 15 | } |
| 16 | |
| 17 | function deleteLastArr(str) { |
| 18 | return str.replace(/\[.*?\]/g, ''); |
no outgoing calls
no test coverage detected