If you’re using jQuery (I know, I know), this is stupid easy:
```javascript
const admins = $('[data-role="admin"]').toArray();
```
But yeah, vanilla JS with querySelectorAll is the way to go if you’re not already using jQuery.
```javascript
const admins = $('[data-role="admin"]').toArray();
```
But yeah, vanilla JS with querySelectorAll is the way to go if you’re not already using jQuery.
