Skip to content

a single function that takes in an array of primitive values and returns a new array containing the original array and the original array in every possible combination of sorting orders, minus any duplicates. Works with primitive and custom string or numeric data types (not arrays or objects)

License

Notifications You must be signed in to change notification settings

brendangooch/every-combination

Repository files navigation

every-combination

a single function that takes in an array of numbers and returns a new array containing the original array and the original array in every possible combination of sorting orders, minus any duplicates. Currently works with arrays of length 3 - 6 values. Any larger and the function is seriously inefficient and slow

About

a single function that takes in an array of primitive values and returns a new array containing the original array and the original array in every possible combination of sorting orders, minus any duplicates. Works with primitive and custom string or numeric data types (not arrays or objects)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published