(name: string)
| 56 | |
| 57 | // Filter out empty strings and numeric-only names (which conflict with $0, $1 shorthand) |
| 58 | const isValidName = (name: string): boolean => |
| 59 | typeof name === 'string' && name.trim() !== '' && !/^\d+$/.test(name) |
| 60 | |
| 61 | if (Array.isArray(argumentNames)) { |
| 62 | return argumentNames.filter(isValidName) |
nothing calls this directly
no outgoing calls
no test coverage detected