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 <eris...@gmail.com> 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 tiddlyw...@googlegroups.com. > To unsubscribe from this group, send email to > tiddlywiki+unsubscr...@googlegroups.com. > 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 tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.