(style)
| 33 | } |
| 34 | |
| 35 | export default function normalizeStyle(style) { |
| 36 | if (_.isArray(style)) { |
| 37 | return _.reduce( |
| 38 | style, |
| 39 | (normalizedStyle, val) => ({ |
| 40 | ...normalizedStyle, |
| 41 | ...normalize(val), |
| 42 | }), |
| 43 | {}, |
| 44 | ); |
| 45 | } |
| 46 | |
| 47 | return normalize(style); |
| 48 | } |
no test coverage detected