Skip to content

Instantly share code, notes, and snippets.

View FayDoom's full-sized avatar
:shipit:

FayDoom FayDoom

:shipit:
  • Skynet
  • Switzerland
View GitHub Profile
@FayDoom
FayDoom / cartesianProduct.js
Last active July 15, 2026 23:33
Javascript - Very fast cartesian product algorithm
/*
Just a cartesian product algorithm I made. The fastest I've seen.
Not limited to 250 arguments (almost every other use the spread operator in the function's arguments)
Enjoy ! (If you want to thank me, a ferrari would be nice)
- Christophe Jochum
*/