I have a JavaScript function which currently accepts one argument:
foo(country) { ... } and so is used like foo('US')
I need to extend this function to accept one or multiple countries:
foo('US')
foo('US', 'CA', 'UK')
foo(['US', 'CA', 'UK'])
Is any syntax/keyword feature for this? In C# we have a params keyword for this