import { permutations } from "https://dotland.deno.dev/std@0.181.0/collections/mod.ts";
Builds all possible orders of all elements in the given array Ignores equality of elements, meaning this will always return the same number of permutations for a given length of input.
Parameters
inputArray: readonly T[]