将二维数组转成笛卡儿积数组
fromArray([['a', 'b'], ['c']]) // [["a","c"],["b","c"]]
fromArray([['a', 'b'], ['c', 'd']]) // [["a","c"],["a","d"],["b","c"],["b","d"]]
二维数组
将对象转成笛卡儿积
fromObject({ color: ['red', 'blue'], size: ['22#'] }) // [{"color":"red","size":"22#"},{"color":"blue","size":"22#"}]
原始对象
可选配置
转换后的笛卡尔积数组
Generated using TypeDoc
将二维数组转成笛卡儿积数组
fromArray([['a', 'b'], ['c']]) // [["a","c"],["b","c"]]
fromArray([['a', 'b'], ['c', 'd']]) // [["a","c"],["a","d"],["b","c"],["b","d"]]