Leafo\ScssPhp\Compiler::libMapGet PHP Method

libMapGet() protected method

protected libMapGet ( $args )
    protected function libMapGet($args)
    {
        $map = $this->assertMap($args[0]);
        $key = $this->compileStringContent($this->coerceString($args[1]));
        for ($i = count($map[1]) - 1; $i >= 0; $i--) {
            if ($key === $this->compileStringContent($this->coerceString($map[1][$i]))) {
                return $map[2][$i];
            }
        }
        return static::$null;
    }
Compiler