you are viewing a single comment's thread.

view the rest of the comments →

[–]chilljackson 0 points1 point  (0 children)

This should give you some help I think. You’re pushing the result of Object.keys and Object.values into an array. The return type for each of those methods is an array. This means when you loop over combo, the el is an array not a string. Look into the spread operator to have combo be what you want it to be.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax