0

Possible Duplicate:
Javascript array difference

What's the neatest way to subtract one array from another in JavaScript or jQuery?

Example:

var first_list = ['a','b','c','d','e','f'];
var second_list = ['b','c','f'];
// Subtract second_list from first_list to get ['a','d','e']?

Thanks!

Community
  • 1
  • 1
Richard
  • 29,061
  • 28
  • 104
  • 145

0 Answers0