src/Mobileka/MosaicArray/MosaicArray.php
public function excludeByRule(Closure $rule)
    {
        $result = $this->target;

        foreach ($result as $key => $value) {
            if ($rule($key, $value)) {
                unset($result[$key]);
            }
        }

        return $result;
    }
public function excludeByRule(Closure $rule)
    {
        $result = $this->target;

        foreach ($result as $key => $value) {
            if ($rule($key, $value)) {
                unset($result[$key]);
            }
        }

        return $result;
    }
public function excludeByRule ( Closure $ rule ) { $ result = $ this -> target ; foreach ( $ result as $ key => $ value ) { if ( $ rule ( $ key , $ value ) ) { unset ( $ result [ $ key ] ) ; } } return $ result ; }
Exclude an item from an array if its value meets a rule

@param  \Closure $rule
@return array
Exclude an item from an array if its value meets a rule