////////////////////////////////////////////////////////////////////////////////
/// Position                                                        #is-position
////////////////////////////////////////////////////////////////////////////////
///
/// Checks to see if value is a direction position
///
/// @author Hugo Giraudel
///
/// @link https://css-tricks.com/snippets/sass/advanced-type-checking/
///

///
/// @group helpers-checks
///
/// @require {function} is-length
/// @require {function} is-percentage
///
/// @return {bool}

@use 'sass:string';

@function position($value) {
  @return string.index('top' 'right' 'bottom' 'left' 'center', $value) != null;
}
