ningyougang commented on PR #5244:
URL: https://github.com/apache/openwhisk/pull/5244#issuecomment-1173207585

   Hi,guys.
      Regarding `prvoide array result`, for common action or sequence action, i 
have implemented in my local, e.g. for this example: 
https://github.com/apache/openwhisk/blob/master/docs/actions.md#creating-action-sequences
   
   I updated the split.js and sort.js like below and invoked successully using 
my local openwhisk codes
   ```split.js
   function main(msg) {
      var separator = msg.separator || /\r?\n/;
      var payload = msg.payload.toString();
      var lines = payload.split(separator);
      return lines;
   }
   ```
   And
   ```sort.js
   function main(msg) {
      var lines = msg || [];
      console.log('sort before: ' + lines);
      lines.sort();
      return lines;
   }
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to