I've got an array of objects with a few properties, such as 'value' and 'label'.
array.join(' ') of course gives me "[object] [object]", but instead I need to get a string of the 'value' properties of all objects, separated by a space.
What is the shortest way to do this, and is this possible without writing a for loop?
.toString()method to yourConstructor.prototypeobject to define how it should look when converted to a string. Then you can just doarray.join(" ")