• Cryptoki
  • NEWBIE
  • 0 Points
  • Member since 2016


  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
Hi guys,

Is there a way to pass an unknown number of parameters (variable "args" below) to JavaScript Remoting like:
 
function remoting(target, ...args) {
    Visualforce.remoting.Manager.invokeAction(
        configSettings.remoteActions[target],
        args,
        function (result, event) {
            if (event.status)
                console.log(result);
        },
        { escape: false }
    );
}

Thanks!