(width?: ColumnSize | null)
| 15 | |
| 16 | // numbers and percents are considered static. *fr units or a lack of units are considered dynamic. |
| 17 | export function isStatic(width?: ColumnSize | null): boolean { |
| 18 | return width != null && (!isNaN(width as number) || String(width).match(/^(\d+)(?=%$)/) !== null); |
| 19 | } |
| 20 | |
| 21 | export function parseFractionalUnit(width?: ColumnSize | null): number { |
| 22 | if (!width || typeof width === 'number') { |
no outgoing calls
no test coverage detected