JSFiddle - React, Tailwind, and code Playground

HTML

<input value="one"/>
<input value="two"/>
<input value="three"/>

JavaScript

var arr = $(":text").map(function() {
    return this.value
}).get();
alert(arr)