Commit 34fc29ff authored by nanahira's avatar nanahira

fix

parent cef1979b
......@@ -75,7 +75,7 @@ function parseWhereClause(whereClause: (string | any)[]) {
function getCombination(arr: number[], count: number): number[][] {
const len = arr.length;
if (count === len || count === 0) {
if (count >= len || count === 0) {
return [arr.slice(0, count)]
} else if (count > len / 2) {
const reversedCombination = getCombination(arr, len - count);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment