underscore.js with two arrays
问题 I have the following array: ['aaa', 'bbb', 'ccc', 'ddd'] My goal is to remove from it unexpected values: I tried to do it with underscore without function like below: _.without(['aaa', 'bbb', 'ccc', 'ddd'], 'bbb', 'ccc'); It works fine, but unfortunately it does not work with array: _.without(['aaa', 'bbb', 'ccc', 'ddd'], ['bbb', 'ccc']); I've googled a bit and find the post underscore.js - Is there a function that produces an array thats the difference of two arrays? But in my case this one