(value, target = [])
| 46 | const warnedInvalidThemes = new Set(); |
| 47 | |
| 48 | function normalizeExtensions(value, target = []) { |
| 49 | if (Array.isArray(value)) { |
| 50 | value.forEach((item) => normalizeExtensions(item, target)); |
| 51 | return target; |
| 52 | } |
| 53 | |
| 54 | if (value !== null && value !== undefined) { |
| 55 | target.push(value); |
| 56 | } |
| 57 | |
| 58 | return target; |
| 59 | } |
| 60 | |
| 61 | function toExtensionGetter(getExtension) { |
| 62 | if (typeof getExtension === "function") { |
no outgoing calls
no test coverage detected