Skip to content
Advertisement

how to build object JS

I have an array of booking and types. From these two arrays I need to build an object. Everything works great, except for the types. Types return an array in each object (same). How can you return the correct object?

JavaScript

Advertisement

Answer

found a solution to my problem. It was enough to add indexes

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement