UNPKG

@tanshenghu/web-utils

Version:

web公共方法

17 lines (15 loc) 370 B
declare const Algorithm: { /** * * @param datas 穷举队列 二维数组 * @param cb 回调函数 * @example * ```js * Algorithm.exhaustive([['红','绿','紫'], ['l','xl','xxl']], function(args){ * // [红 l] [红xl] [红xxl] [绿l] ... * }); * ``` */ exhaustive(datas: Array<any>, cb: Function): void } export default Algorithm;