I think that may be it (or very close) i.e. ara1 = [a,b,c,d,e] ara2 = [c,e]
aRes = [a, b, d] I tried to google a answer, but without the proper terminology I did not get any usable results. Thank You for the feedback, Mike On Apr 25, 5:41 pm, "Mark S." <[email protected]> wrote: > I guess you mean a method to produce an array by removing all items > from array 1 that are not in array 2 ? > > Something like this? > > function ArraySubtract(ara1,ara2) { > var aRes = new Array() ; > for(var i=0;i<ara1.length;i++) { > if( ! (ara2.contains(ara1[i]) )) { > aRes.push(ara1[i]) ; > } > } > return aRes ; > > } > > Mark > > On Apr 25, 8:48 am, Mike <[email protected]> wrote: > > > Javascript or jQuery - compare / subtract (2) arrays, output to a 3rd > > array? > > > I am having a hard time finding a reference as to what is the best > > practice for this. . . > > > Any thoughts or suggestion? > > > Mike > > > -- > > You received this message because you are subscribed to the Google Groups > > "TiddlyWiki" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group > > athttp://groups.google.com/group/tiddlywiki?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "TiddlyWiki" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group > athttp://groups.google.com/group/tiddlywiki?hl=en. -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.

