src/Mobileka/MosaicArray/MosaicArray.php
public function find($defaultResult = null)
    {
        foreach ($this->target as $value) {
            if ($value) {
                return $value;
            }
        }

        return $defaultResult;
    }
public function find($defaultResult = null)
    {
        foreach ($this->target as $value) {
            if ($value) {
                return $value;
            }
        }

        return $defaultResult;
    }
public function find ( $ defaultResult = null ) { foreach ( $ this -> target as $ value ) { if ( $ value ) { return $ value ; } } return $ defaultResult ; }
Return the first truthy element of the target array.
If none of them is truthy, return a defaultResult.

@param  mixed $defaultResult
@return mixed
Return the first truthy element of the target array . If none of them is truthy return a defaultResult .