grupper

Create combinations of words

Usage no npm install needed!

<script type="module">
  import grupper from 'https://cdn.skypack.dev/grupper';
</script>

README

grupper Build Status

Create combinations of words

Install

$ npm i --save grupper

Usage

var grupper = require('grupper');

grupper([['apple', 'banana'], [' is '], ['good', 'sweet']]);
// ['apple is good', 'apple is sweet', 'banana is good', 'banana is sweet']

Syntax

grupper(groups)

groups

Type: Array<string>

From left-to-right, prepend each word from the first group to the next group. It continues to do so for all groups.

License

MIT (c) Lauritz Hilsøe [mail@lauritz.me]