unit

external val unit: String(source)

The CSSUnitValue.unit read-only property of the CSSUnitValue interface returns a string indicating the unit type.

MDN Reference