JSFiddle - React, Tailwind, and code Playground
HTML
<div id="write"></div>
JavaScript
function reindex_array_keys(array, start){
var temp = [];
start = typeof start == 'undefined' ? 0 : start;
start = typeof start != 'number' ? 0 : start;
for(var i in array){
temp[start++] = array[i];
}
return temp;
}
var testArray = new Array();
testArray[3]="qwerty";
testArray[7]="asdfgh";
testArray[13]="zxcvbn";
testArray = reindex_array_keys(testArray);
var testString = testArray.join();
var testid
$(function(){
$('#write').text(testString);
});