UNPKG

everyutil

Version:

A comprehensive library of lightweight, reusable utility functions for JavaScript and TypeScript, designed to streamline common programming tasks such as string manipulation, array processing, date handling, and more.

10 lines (9 loc) 245 B
/** * Returns the Cartesian product of two arrays. * @author @dailker * @template A, B * @param {A[]} arrayA * @param {B[]} arrayB * @returns {[A, B][]} */ export declare function cross<A, B>(arrayA: A[], arrayB: B[]): [A, B][];