row.locations = skuLocationsMap[sku].reduce(function (accum, curr) { return accum + (accum !== '' ? ', ' : '') + curr;}, '');
The above is a complex way of doing Array.prototype.join() but it's helpful for remembering how reduce works.
Upon submitting a request to my service like CURL -X POST http://localhost:8600/a/b/c -d '{"assignmentId[]":[12345]}' ...
No comments:
Post a Comment