15 lines
214 B
JavaScript
15 lines
214 B
JavaScript
|
const myList = [
|
||
|
'agua',
|
||
|
'bacalao',
|
||
|
'mantequilla',
|
||
|
'manzana',
|
||
|
'jugo',
|
||
|
'habichuelas',
|
||
|
'bacalao',
|
||
|
'pan',
|
||
|
|
||
|
]
|
||
|
|
||
|
const newArr = _.difference(myList, ['pan', 'jugo']);
|
||
|
|
||
|
console.log(newArr);
|