I know I keep asking javascript questions here, but every step you guys help me overcome reveals another problem to fix. I promise I gave it my all on this one, but I can't seem to find a way out.
I'd like to modify every element of an array the same way. So make [1,2,3,4] into [n1,n2,n3,n4]. Now the forEach() is able to do this fairly easily, but I think my problem may be more specific. What I'm trying to do is make every item in an array into an object. So [1,2,3] becomes [{"item": 1},{"item": 2},{"item": 3}].
Man, .forEach() wants to do it so bad, but I'm getting that stringified "[object Object]" thing in the debug node, and I just don't know how to parse it out. Node.send() will spit out each item individually, so I thought I might just build another array with .push()...but I'm making things goofy at that point.
Thanks in advance for the great help!