/// Print all of a map's key-value pairs.
///
/// @group Debug
/// @author Kendrick Arnett
///
/// @param $map - The map to debug.
@mixin debug-map($map) {
  @at-root {
    @debug-map {
      __toString__: inspect($map);
      __length__: length($map);
      __depth__: map-depth($map);
      __keys__: map-keys($map);

      __properties__ {
        @each $key, $value in $map {
          #{'(' + type-of($value) + ') ' + $key}: inspect($value);
        }
      }
    }
  }
}
