From 04e44e85cadbbe82b6eb734d31541ecd66d3757d Mon Sep 17 00:00:00 2001 From: Yam Borodetsky Date: Fri, 13 Sep 2024 14:36:11 +0500 Subject: [PATCH] fix: input should be strictly an array of arrays --- src/array/cartesianProduct.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/array/cartesianProduct.ts b/src/array/cartesianProduct.ts index d00755415..639816012 100644 --- a/src/array/cartesianProduct.ts +++ b/src/array/cartesianProduct.ts @@ -17,7 +17,7 @@ * // ] * ``` */ -export function cartesianProduct( +export function cartesianProduct( ...arrays: [...T] ): Array<{ [K in keyof T]: T[K][number] }> export function cartesianProduct(...arrays: T): T[][] {