I've got an array of 220 objects in javascript. Each object is of the form like this...
var foo = {
foo: string
bar: string
i: number
}
I want to be able to find all permutations where (starting at the second item in the list) bar == foo
and if the original foo
appears again, it will act upon that. Permutation chains could be of any size up to the length of the list.
I took a quick through some permutations libraries but nothing stood out to me.
Any ideas for libraries to use to do this?
Thanks