pixi.js
Version:
PixiJS — The HTML5 Creation Engine =============
9 lines (8 loc) • 356 B
TypeScript
/**
* Creates a list of all possible combinations of the given strings.
* @example
* const out2 = createStringVariations('name is {chicken,wolf,sheep}');
* console.log(out2); // [ 'name is chicken', 'name is wolf', 'name is sheep' ]
* @param string - The string to process
*/
export declare function createStringVariations(string: string): string[];