Merx

$productList->first()

Returns the first element

$productList->first(): TValue|null

Return type

TValue or null

Parent class

Wagnerwagner\Merx\ProductList inherited from Kirby\Toolkit\Collection