(value: string | number)
| 25 | * } |
| 26 | */ |
| 27 | export default function getValueAndUnit(value: string | number): any { |
| 28 | if (typeof value !== 'string') return [value, ''] |
| 29 | const matchedValue = value.match(cssRegex) |
| 30 | if (matchedValue) return [parseFloat(value), matchedValue[2]] |
| 31 | return [value, undefined] |
| 32 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…