* If value is not array, then translate it to array. * @param {*} value * @return {Array} [value] or value
(value)
| 11725 | * @return {Array} [value] or value |
| 11726 | */ |
| 11727 | function normalizeToArray(value) { |
| 11728 | return value instanceof Array |
| 11729 | ? value |
| 11730 | : value == null |
| 11731 | ? [] |
| 11732 | : [value]; |
| 11733 | } |
| 11734 | |
| 11735 | /** |
| 11736 | * Sync default option between normal and emphasis like `position` and `show` |
no outgoing calls
no test coverage detected