Write a JavaScript program to filter out the element(s) of a given array, that have one of the specified values
- برمجة جافاسكربت java script
- برمجة
- 2021-06-03
- ahmadghneem
الأجوبة
const without = (arr, ...args) => arr.filter(v => !args.includes(v));
console.log(without([2, 1, 2, 3], 1, 2));
console.log(without([2, 1, 2, 3], 3));
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال