Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/plxity/and-game

https://www.npmjs.com/package/its-and-game
https://github.com/plxity/and-game

and-game javascript npm npm-package

Last synced: 2 months ago
JSON representation

https://www.npmjs.com/package/its-and-game

Awesome Lists containing this project

README

        

## and-game

```JS

// 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.

```

## Parameters
1. Array of elements.
2. Boolean value if you wanna use '&' instead of 'and'. By default it is set to false.