Function unit

  • Extract the value and unit of a unit string (e.g, '10px' into { value: 10, unit: 'px' }).

    Parameters

    • value: string

    Returns undefined | {
        unit: string;
        value: number;
    }

Generated using TypeDoc