UNPKG

eslint-plugin-perfectionist

Version:

ESLint plugin for sorting various data such as objects, imports, types, enums, JSX props, etc.

12 lines (11 loc) 373 B
/** * Generates all possible combinations of a specific size from an array. * * @param array - The array of strings to generate combinations from. * @param number - The number of elements in each combination. * @returns An array containing all possible combinations. */ export declare function getArrayCombinations( array: string[], number: number, ): string[][]