practice/curry.js

15 lines
214 B
JavaScript
Raw Normal View History

2024-06-26 05:14:25 +00:00
const myList = [
'agua',
'bacalao',
'mantequilla',
'manzana',
'jugo',
'habichuelas',
'bacalao',
'pan',
]
const newArr = _.difference(myList, ['pan', 'jugo']);
console.log(newArr);