JSFiddle - React, Tailwind, and code Playground

HTML

<p id="test"></p>

JavaScript

var arr = [
"Stories",
"Tasks",
"In Progress",
"In Review",
"Completed",
[
{
    "divName": "content-container2",
    "content": "us 2345",
    "topPos": 109,
    "leftPos": 150
},
{
    "divName": "content-container3",
    "content": "Description",
    "topPos": 98,
    "leftPos": 382
},
{
    "divName": "content-container4",
    "content": "12212",
    "topPos": 110,
    "leftPos": 644
}
],
    'sample'
];

Array.prototype.oneDimension = function(){
   return this.filter(function(value){
       console.log(typeof value);
     return typeof value != 'array' && typeof value != 'object';
   });
}

document.getElementById('test').innerHTML = arr.oneDimension();