Function createStringVariations

  • Creates a list of all possible combinations of the given strings.

    Parameters

    • string: string

      The string to process

    Returns string[]

    Example

    const out2 = createStringVariations('name is {chicken,wolf,sheep}');
    console.log(out2); // [ 'name is chicken', 'name is wolf', 'name is sheep' ]

Generated using TypeDoc