src/Jsonq.php
public function each(callable $fn)
    {
        $this->prepare();

        foreach ($this->_map as $key => $val) {
            $fn($key, $val);
        }
    }
public function each(callable $fn)
    {
        $this->prepare();

        foreach ($this->_map as $key => $val) {
            $fn($key, $val);
        }
    }
public function each ( callable $ fn ) { $ this -> prepare ( ) ; foreach ( $ this -> _map as $ key => $ val ) { $ fn ( $ key , $ val ) ; } }
take action of each element of prepared data

@param callable $fn
@throws ConditionNotAllowedException
take action of each element of prepared data