(value?: T | T[])
| 85 | * @return {Array} [value] or value |
| 86 | */ |
| 87 | export function normalizeToArray<T>(value?: T | T[]): T[] { |
| 88 | return value instanceof Array |
| 89 | ? value |
| 90 | : value == null |
| 91 | ? [] |
| 92 | : [value]; |
| 93 | } |
| 94 | |
| 95 | /** |
| 96 | * Sync default option between normal and emphasis like `position` and `show` |
no outgoing calls
no test coverage detected
searching dependent graphs…