UNPKG

@onflow/flow-js-testing

Version:

This package will expose a set of utility methods, to allow Cadence code testing with libraries like Jest

9 lines (8 loc) 224 B
export const permute = (...values) => values.length > 1 ? permute( values[0].reduce((acc, i) => { return [...acc, ...values[1].map(j => [].concat(i).concat(j))] }, []) ) : values[0]