JSFiddle - React, Tailwind, and code Playground

by pierian_design

JavaScript

var arr = ['1', '2', '3'];

var res = arr.reduce(function(acc, item){
	acc.push(item);
	return acc;
}, [])

console.log(res);