JSFiddle - React, Tailwind, and code Playground

JavaScript

var test = [['TEST1'], ['TEST2'], ['TEST3'], ['TEST4'], ['TEST5']];

var out = test.map(el => el[0]);

console.log(out)