Return a new array with all elements that are included in the given values.
const a = filterValues([1, 2, 3])([1, 2, 3, 4, 5]); // [1, 2, 3]const b = filterValues(['a', 'b', 'c'])(['a', 'b', 'c', 'd', 'e']); // ['a', 'b', 'c'] Copy
const a = filterValues([1, 2, 3])([1, 2, 3, 4, 5]); // [1, 2, 3]const b = filterValues(['a', 'b', 'c'])(['a', 'b', 'c', 'd', 'e']); // ['a', 'b', 'c']
Return a new array with all elements that are included in the given values.
See
Example