I have a Typescript project where I am passing variables between two methods, the method that receives the information has two optional variables and I want to inform the second optional one.
How can I tell what variable I'm passing?
This is the method that sends:
function testOne() {
  let data = 'testOne';
  let data2 = 'testTwo';
  let data4 = 'testFour';
  testTwo(data,data2,data4);
}
This is the method you receive:
function testTwo(data: string, data2: string, data3?: string, data4?: string) {
  let result = `
    ${data} -- ${data2} -- ${data3 || ''} -- ${data4 || ''}
  `;
}
This is the result:
testOne -- testTwo -- testFour --
This is what I need to get:
testOne -- testTwo --  -- testFour
