(opt)
| 40 | } |
| 41 | |
| 42 | function arrayParser(opt) { |
| 43 | if (Array.isArray(opt)) { |
| 44 | return opt; |
| 45 | } else if (typeof opt === 'string') { |
| 46 | return opt.split(','); |
| 47 | } else { |
| 48 | throw new Error(`${opt} should be a comma separated string or an array`); |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | function moduleOrObjectParser(opt) { |
| 53 | if (typeof opt == 'object') { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…