Unknown number of arguments

  • how can i loop through unknown number of arguments in an action?

    something similar to this javascript function:

    Code
    function arg_values() {
        for(var i = 0; i < arguments.length; i++) {
           console.log(arguments[i] + ' ');                
        }
     }
    
    
    arg_values('one', 'two', 'three');
    arg_values('one', 'two', 'three', 'four');

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!