src/MongoMinify/Query.php
public function isSequentialArray($array)
    {
        $counter = 0;
        foreach ($array as $key => $value) {
            if ($counter !== $key) {
                return false;
            }
            $counter++;
        }

        return true;
    }
public function isSequentialArray($array)
    {
        $counter = 0;
        foreach ($array as $key => $value) {
            if ($counter !== $key) {
                return false;
            }
            $counter++;
        }

        return true;
    }
public function isSequentialArray ( $ array ) { $ counter = 0 ; foreach ( $ array as $ key => $ value ) { if ( $ counter !== $ key ) { return false ; } $ counter ++ ; } return true ; }
Check if this array is sequential
Check if this array is sequential