2 ms·
Conflicting documentation: me() is guaranteed to return 1 element (or first found, or null). any() is guaranteed to return an array (or empty array).
by Izkata 2y ago
Conflicting documentation:
me() is guaranteed to return 1 element (or first found, or null).
any() is guaranteed to return an array (or empty array).
Array methods
any('button')?.forEach(...)
any('button')?.map(...)
So does any() always return an array as described near the top, or can it return null as implied by the example below?