// Input
andGame(['idli', 'sambhar', 'chutney']);
// Output
idli, sambhar and chutney.
// Input - with second paramter true which will use '&' instead of 'and'
andGame(['idli', 'sambhar', 'chutney'], true);
// Output
idli, sambhar & chutney.
- Array of elements.
- Boolean value if you wanna use '&' instead of 'and'. By default it is set to false.