JSFiddle - React, Tailwind, and code Playground

by Usermane

JavaScript

var source = ['a', 'b', 'c'];
console.log(source);

var result = [];
source.forEach(function(element){
	result.push([element]);
});

console.log(result);