@use "sass:math" as math;

/// Remove the unit of a value
/// @param {Number} $number - Number to remove unit from
/// @return {Number} - Unitless number
@function strip-unit($number) {
    @if type-of( $number ) == 'number' and not unitless( $number ) {
        @return math.div( $number, ( $number * 0 + 1 ) );
    }

    @return $number;
}
