index() public method

New function index returns the list index of a value within a list. For example: index(1px solid red, solid) returns 2. When the value is not found false is returned.
public index ( $value )
Ejemplo n.º 1
0
 public static function index($list, $value)
 {
     if (!$list instanceof SassList) {
         $list = new SassList($list->toString());
     }
     return $list->index($value);
 }