@use "sass:math";
@use "sass:meta";

@function strip-unit($number) {
	@if meta.type-of($number) == 'number' {
		@if not math.is-unitless($number) {
			@return math.div($number, $number * 0 + 1);
		}
		@warn "#{$number} is already unitless, is this function call necessary?";
		@return $number;
	}
	@warn "#{$number} is not a number, returning null.";
	@return null;
}
