JSFiddle - React, Tailwind, and code Playground

JavaScript

$(['test', '2']).each(function (i, el) {
    console.log(i, el);
});