public static function shiftValues(
        array $arr,
        $match = false,
        bool $strict = false
    ): array
    {
        $func = Compare::getMethod($strict);
        $len = count($arr);
        while ($len > 0 && call_user_func($func, reset($arr), $match)) {
            array_shift($arr);
            $len--;
        }
        return $arr;
    }