Merx

$listItems->nth()

Returns the nth element from the collection

$listItems->nth(int $n): TValue|null

Parameters

Name Type Default
$n int -

Return type

TValue or null

Parent class

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