JSFiddle - React, Tailwind, and code Playground

JavaScript

var test = [];
test.push('dog');
test.push('cat');

$.post('./',
                { 'arr': test, 'someBool': true, 'someInt': 1 },
                function(response, status, xhr) {
                    // ...
                });