Returns the attributes of every element in the array, optionally filtered by name.
The source elements.
Optional
Optional name filter.
An array of attributes.
Returns the attributes of every element in the array, optionally filtered by name.