0

How to specify the optional parameter in update node js sdk method. Update ( account ID, envelope I'd , envelope obj )

Bg Prabha
  • 9
  • 2
  • unclear what you are asking exactly. Can you explain further. Which method, which parameter, what are you trying to do? – Inbar Gazit Sep 07 '19 at 00:05

1 Answers1

0

You just add the parameter you want to the call

so, if there's an optional parameter in a method method1, you can call it like this:

method1(param1, param2, param3);

(where if param3 is optional you can also call it like this:)

method1(param1, param2);

you can also (See here - Is there a way to provide named parameters in a function call in JavaScript?) specify the names of the parameters:

method1(param1 - "param1", param2: "param2");
Inbar Gazit
  • 12,566
  • 1
  • 16
  • 23