LogoPixi’VN
pixi-jsFunctions

Function: createStringVariations()

> createStringVariations(string): string[]

Defined in: node_modules/pixi.js/lib/assets/utils/createStringVariations.d.ts:9

Internal

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' ]