Filters the array items by the given key is newer given value.

/**
 * Filters the array items by the given key is newer given value.
 *
 * @param string $key   Key of the array for comparison.
 * @param mixed  $value Value used for comparison.
 *
 * @return self Returns instance of The Arrays class.
 */
public function whereNewer(string $key, $value): self

Examples

$result = Arrays::create([
                0 => ['date' => '2020-11-11'],
                1 => ['date' => '2020-11-12'],
            ])
            ->whereNewer('date', '2020-11-11')
            ->toArray();
);

Getting Started

Methods