Leafo\ScssPhp\Compiler::libMax PHP Method

libMax() protected method

protected libMax ( $args )
    protected function libMax($args)
    {
        $numbers = $this->getNormalizedNumbers($args);
        $max = null;
        foreach ($numbers as $key => $number) {
            if (null === $max || $number[1] >= $max[1]) {
                $max = [$key, $number[1]];
            }
        }
        return $args[$max[0]];
    }
Compiler