I want to use map object instead of calling checkOrder 3 times. How to use via Map instead of all params in this case? :
Admin.ts
class Admin{
async checkTest(
local: string,
suburb: string,
international: string
): Promise<void> {
await checkOrder(local, "Declined");
await checkOrder(suburb, "Declined");
await checkOrder(international, "Declined");
return;
}
}
Test.ts
test("Test", async (t) => {
await Admin.checkTest(
"Local Place",
"Suburb Place",
"International Place"
);
);
}