toSum

open external fun toSum(vararg units: String): CSSMathSum(source)

The toSum() method of the CSSNumericValue interface converts the object's value to a CSSMathSum of CSSUnitValues using only the specified units, if possible. If called with no units, it simplifies the value into a minimal sum of CSSUnitValues instead.

MDN Reference