@supuwoerc/toolkit
    Preparing search index...

    Function getUnit

    • 从字符串值中提取CSS单位 Extracts CSS unit from string value

      Parameters

      • value: unknown

        要检查的值,可能是字符串或其他类型 The value to check, could be string or other types

      Returns string

      提取的单位字符串,如果不是有效格式则返回空字符串 Extracted unit string, returns empty string if not valid format