I want to add just one item to an array in Javascript and use that array as an argument for a method. How can I complete this with an easy syntax.
I tried this:
[].push({ "value" : "test"});
But that only returns 1. I want the complete array as a return.
So any ides? Something similar to what I tried?
Try this: