JSFiddle - React, Tailwind, and code Playground
by borayeris
HTML
<div id="write"></div>
JavaScript
var testArray = new Array();
testArray[3]="qwerty";
testArray[7]="asdfgh";testArray[7]="asdfgh";
testArray[13]="zxcvbn";
testArray[7]='';
var testString = testArray.filter(function (item) { return item != undefined && item != '' }).join();
$(function(){
$('#write').text(testString);
});