Creating a recursively nesting array structure from flat data in JavaScript
Looking for some help to build a deeply nested data structure in JavaScript. I will have input data that takes the form like this: [ ["World", "Asia", "Singapore", "Asia-Singapore", "1300"], ["World", "Asia", "India", "Asia-India", "850"], ["World", "Asia-Singapore", "Bond", "Bond-Singapore", "650"],…